[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / merge-gc-piece.s
blob9daa38096d8a7c262148428b38ef505b04fac2e1
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 --gc-sections
4 # RUN: llvm-readobj -S --section-data %t.so | FileCheck %s
7 # CHECK: Name: .foo
8 # CHECK-NEXT: Type: SHT_PROGBITS
9 # CHECK-NEXT: Flags [
10 # CHECK-NEXT: SHF_ALLOC
11 # CHECK-NEXT: SHF_MERGE
12 # CHECK-NEXT: ]
13 # CHECK-NEXT: Address: 0x1FD
15 # CHECK: Name: .bar
16 # CHECK-NEXT: Type: SHT_PROGBITS
17 # CHECK-NEXT: Flags [
18 # CHECK-NEXT: ]
19 # CHECK-NEXT: Address:
20 # CHECK-NEXT: Offset:
21 # CHECK-NEXT: Size: 16
22 # CHECK-NEXT: Link:
23 # CHECK-NEXT: Info:
24 # CHECK-NEXT: AddressAlignment:
25 # CHECK-NEXT: EntrySize:
26 # CHECK-NEXT: SectionData (
27 # CHECK-NEXT: 0000: FE010000 00000000 FF010000 00000000
28 # CHECK-NEXT: )
30 .section .foo,"aM",@progbits,8
31 .quad 42
32 .global sym
33 sym:
34 .quad 43
36 .section .bar
37 .quad .foo + 1
38 .quad .foo + 2