1// REQUIRES: x86 2// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o 3// RUN: ld.lld %t.o -o %t.so -shared 4// RUN: llvm-readobj -r -S %t.so | FileCheck %s 5 6 .section foo,"aM",@progbits,4 7 .long 42 8 .long 42 9 10 .data 11 .quad foo + 6 12 13 14// CHECK: Name: foo 15// CHECK-NEXT: Type: SHT_PROGBITS 16// CHECK-NEXT: Flags [ 17// CHECK-NEXT: SHF_ALLOC 18// CHECK-NEXT: SHF_MERGE 19// CHECK-NEXT: ] 20// CHECK-NEXT: Address: 0x260 21 22// CHECK: Relocations [ 23// CHECK-NEXT: Section ({{.*}}) .rela.dyn { 24// CHECK-NEXT: 0x{{.*}} R_X86_64_RELATIVE - 0x262 25// CHECK-NEXT: } 26// CHECK-NEXT: ] 27