[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / compatible-section-types.s
blob8aaf7194ec36b7140afdb535ba4fd4ce8380276f
1 # REQUIRES: x86
3 ## Some section types (e.g. SHT_NOBITS, SHT_NOTE, SHT_PREINIT_ARRAY) can be
4 ## mixed with SHT_PROGBITS. The output type is SHT_PROGBITS.
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
7 # RUN: ld.lld -shared %t.o -o %t
8 # RUN: llvm-readelf -S %t | FileCheck %s
10 # CHECK: .foo2 PROGBITS {{.*}} 000002 00 A
11 # CHECK: .foo PROGBITS {{.*}} 000028 00 WA
12 # CHECK: .foo1 PROGBITS {{.*}} 000010 00 WA
14 .section .foo, "aw", @progbits, unique, 1
15 .quad 0
17 .section .foo, "aw", @init_array, unique, 2
18 .quad 0
20 .section .foo, "aw", @preinit_array, unique, 3
21 .quad 0
23 .section .foo, "aw", @fini_array, unique, 4
24 .quad 0
26 .section .foo, "aw", @note, unique, 5
27 .quad 0
29 .section .foo1, "aw", @progbits, unique, 1
30 .quad 0
31 .section .foo1, "aw", @nobits, unique, 2
32 .quad 0
34 .section .foo2, "a", @nobits, unique, 1
35 .byte 0
36 .section .foo2, "a", @progbits, unique, 2
37 .byte 0