brintos

brintos / llvm-project-archived public Read only

0
0
Text · 544 B · 4e7407c Raw
20 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o4# RUN: echo "SECTIONS { .data 0x2000 : { foo = .; *(.data) } }" > %t.script5# RUN: ld.lld -pie -o %t --script %t.script %t.o6# RUN: llvm-readobj -r %t | FileCheck %s7 8## Position independent executables require dynamic9## relocations for references to non-absolute script10## symbols.11 12# CHECK:      Relocations [13# CHECK-NEXT:  Section ({{.*}}) .rela.dyn {14# CHECK-NEXT:    0x2000 R_X86_64_RELATIVE - 0x200015# CHECK-NEXT:  }16# CHECK-NEXT: ]17 18.data19.quad foo20