[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / gc-sections-merge-implicit-addend.s
blobefd432c15ccfd5166a40d238a63d76af4ce6d63c
1 // REQUIRES: x86
2 // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=i386-pc-linux
3 // RUN: ld.lld %t.o -o %t.so -shared --gc-sections
4 // RUN: llvm-readobj -S --section-data %t.so | FileCheck %s
7 // CHECK: Name: .rodata
8 // CHECK-NEXT: Type: SHT_PROGBITS
9 // CHECK-NEXT: Flags [
10 // CHECK-NEXT: SHF_ALLOC
11 // CHECK-NEXT: SHF_MERGE
12 // CHECK-NEXT: SHF_STRINGS
13 // CHECK-NEXT: ]
14 // CHECK-NEXT: Address:
15 // CHECK-NEXT: Offset:
16 // CHECK-NEXT: Size: 4
17 // CHECK-NEXT: Link: 0
18 // CHECK-NEXT: Info: 0
19 // CHECK-NEXT: AddressAlignment: 1
20 // CHECK-NEXT: EntrySize: 1
21 // CHECK-NEXT: SectionData (
22 // CHECK-NEXT: 0000: 62617200 |bar.|
23 // CHECK-NEXT: )
25 .section .data.f,"aw",@progbits
26 .globl f
28 .long .rodata.str1.1 + 4
30 .section .data.g,"aw",@progbits
31 .hidden g
32 .globl g
34 .long .rodata.str1.1
36 .section .rodata.str1.1,"aMS",@progbits,1
37 .L.str:
38 .asciz "foo"
39 .L.str.1:
40 .asciz "bar"