[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / merge-shared.s
blob12cb738c1077ef20478bcae6226978444ebf6767
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
6 .section foo,"aM",@progbits,4
7 .long 42
8 .long 42
10 .data
11 .quad foo + 6
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
22 // CHECK: Relocations [
23 // CHECK-NEXT: Section ({{.*}}) .rela.dyn {
24 // CHECK-NEXT: 0x{{.*}} R_X86_64_RELATIVE - 0x262
25 // CHECK-NEXT: }
26 // CHECK-NEXT: ]