brintos

brintos / llvm-project-archived public Read only

0
0
Text · 583 B · 6248c67 Raw
25 lines · plain
1# REQUIRES: mips2 3# Check handling of 64-bit pc-realtive relocation.4 5# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux %s -o %t.o6# RUN: echo 'SECTIONS { \7# RUN:         .text 0x10000 : { *(.text) } \8# RUN:         .data 0x30000 : { *(.data) } \9# RUN:       }' > %t.script10# RUN: ld.lld -shared %t.o -T %t.script -o %t11# RUN: llvm-readelf -x .data %t | FileCheck %s12 13# CHECK:      Hex dump of section '.data':14# CHECK-NEXT:  0x00030000 ffffffff fffffff0 00000001 fffdffe815 16  .option pic217  .text18foo:19  nop20  .data21v0:22  .quad foo+0x1fff0-.23v1:24  .quad foo+0x1fffffff0-.25