1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
| # RUN: llvm-mc -triple i386-pc-linux-gnu -filetype=obj -o %t %s
# RUN: llvm-readobj -S < %t | FileCheck %s
.section .nobits
.byte 1
.section .nobits2
.byte 1
.section .nobitsfoo
.byte 1
.section .init_array
.byte 1
.section .init_array.42
.byte 1
.section .init_array2
.byte 1
.section .init_arrayfoo
.byte 1
.section .fini_array
.byte 1
.section .fini_array2
.byte 1
.section .fini_arrayfoo
.byte 1
.section .preinit_array
.byte 1
.section .preinit_array2
.byte 1
.section .preinit_arrayfoo
.byte 1
.section .note
.byte 1
.section .note2
.byte 1
.section .notefoo
.byte 1
.section .bss
.space 1
.section .bss.foo
.space 1
.section .tbss
.space 1
.section .tbss.foo
.space 1
# CHECK: Name: .nobits
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK: Name: .nobits2
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK: Name: .nobitsfoo
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK: Name: .init_array
# CHECK-NEXT: Type: SHT_INIT_ARRAY
# CHECK: Name: .init_array.42
# CHECK-NEXT: Type: SHT_INIT_ARRAY
# CHECK: Name: .init_array2
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK: Name: .init_arrayfoo
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK: Name: .fini_array
# CHECK-NEXT: Type: SHT_FINI_ARRAY
# CHECK: Name: .fini_array2
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK: Name: .fini_arrayfoo
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK: Name: .preinit_array
# CHECK-NEXT: Type: SHT_PREINIT_ARRAY
# CHECK: Name: .preinit_array2
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK: Name: .preinit_arrayfoo
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK: Name: .note
# CHECK-NEXT: Type: SHT_NOTE
# CHECK: Name: .note2
# CHECK-NEXT: Type: SHT_NOTE
# CHECK: Name: .notefoo
# CHECK-NEXT: Type: SHT_NOTE
# CHECK: Name: .bss
# CHECK-NEXT: Type: SHT_NOBITS
# CHECK: Name: .bss.foo
# CHECK-NEXT: Type: SHT_NOBITS
# CHECK: Name: .tbss
# CHECK-NEXT: Type: SHT_NOBITS
# CHECK: Name: .tbss.foo
# CHECK-NEXT: Type: SHT_NOBITS
|