[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / section-name.s
blob7793cc5472959967fc5c4b6071647ff7814d631d
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 # RUN: ld.lld %t -o %tout
4 # RUN: llvm-objdump --section-headers %tout | FileCheck %s
6 .global _start
7 .text
8 _start:
10 .section .text.a,"ax"
11 .byte 0
12 .section .text.,"ax"
13 .byte 0
14 .section .rodata.a,"a"
15 .byte 0
16 .section .rodata,"a"
17 .byte 0
18 .section .data.a,"aw"
19 .byte 0
20 .section .data,"aw"
21 .byte 0
22 .section .bss.a,"aw",@nobits
23 .byte 0
24 .section .bss,"aw",@nobits
25 .byte 0
26 .section .foo.a,"aw"
27 .byte 0
28 .section .foo,"aw"
29 .byte 0
30 .section .data.rel.ro,"aw",%progbits
31 .byte 0
32 .section .data.rel.ro.a,"aw",%progbits
33 .byte 0
34 .section .data.rel.ro.local,"aw",%progbits
35 .byte 0
36 .section .data.rel.ro.local.a,"aw",%progbits
37 .byte 0
38 .section .tbss.foo,"aGwT",@nobits,foo,comdat
39 .byte 0
40 .section .gcc_except_table.foo,"aG",@progbits,foo,comdat
41 .byte 0
42 .section .tdata.foo,"aGwT",@progbits,foo,comdat
43 .byte 0
44 .section .sdata,"aw"
45 .byte 0
46 .section .sdata.foo,"aw"
47 .byte 0
48 .section .sbss,"aw",@nobits
49 .byte 0
50 .section .sbss.foo,"aw",@nobits
51 .byte 0
52 .section .srodata,"a"
53 .byte 0
54 .section .srodata.foo,"a"
55 .byte 0
57 // CHECK: .rodata 00000002
58 // CHECK-NEXT: .gcc_except_table 00000001
59 // CHECK-NEXT: .srodata 00000002
60 // CHECK-NEXT: .text 00000002
61 // CHECK-NEXT: .tdata 00000001
62 // CHECK-NEXT: .tbss 00000001
63 // CHECK-NEXT: .data.rel.ro 00000004
64 // CHECK-NEXT: .relro_padding 00000df1
65 // CHECK-NEXT: .data 00000002
66 // CHECK-NEXT: .foo.a 00000001
67 // CHECK-NEXT: .foo 00000001
68 // CHECK-NEXT: .sdata 00000002
69 // CHECK-NEXT: .bss 00000002
70 // CHECK-NEXT: .sbss 00000002
71 // CHECK-NEXT: .comment 00000008
72 // CHECK-NEXT: .symtab 00000030
73 // CHECK-NEXT: .shstrtab 0000009a
74 // CHECK-NEXT: .strtab 00000008