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 -O3 4// RUN: llvm-readobj -r -S %t.so | FileCheck %s 5 6 7 .section foo,"aMS",@progbits,1 8 .asciz "bar" 9 .asciz "ar" 10 11 .data 12 .quad foo + 4 13 14 15// CHECK: Name: foo 16// CHECK-NEXT: Type: SHT_PROGBITS 17// CHECK-NEXT: Flags [ 18// CHECK-NEXT: SHF_ALLOC 19// CHECK-NEXT: SHF_MERGE 20// CHECK-NEXT: SHF_STRINGS 21// CHECK-NEXT: ] 22// CHECK-NEXT: Address: 0x260 23 24// CHECK: Relocations [ 25// CHECK-NEXT: Section ({{.*}}) .rela.dyn { 26// CHECK-NEXT: 0x{{.*}} R_X86_64_RELATIVE - 0x261 27// CHECK-NEXT: } 28// CHECK-NEXT: ] 29