Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / merge-shared-str.s
blob9ecdd64e973100db80bbbca58d3dad399d9ef19f
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
7 .section foo,"aMS",@progbits,1
8 .asciz "bar"
9 .asciz "ar"
11 .data
12 .quad foo + 4
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
24 // CHECK: Relocations [
25 // CHECK-NEXT: Section ({{.*}}) .rela.dyn {
26 // CHECK-NEXT: 0x{{.*}} R_X86_64_RELATIVE - 0x261
27 // CHECK-NEXT: }
28 // CHECK-NEXT: ]