• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc -triple i386-pc-linux-gnu -filetype=obj -o %t %s
2# RUN: llvm-readobj -s < %t | FileCheck %s
3.section .nobits
4.byte 1
5.section .nobits2
6.byte 1
7.section .nobitsfoo
8.byte 1
9.section .init_array
10.byte 1
11.section .init_array2
12.byte 1
13.section .init_arrayfoo
14.byte 1
15.section .fini_array
16.byte 1
17.section .fini_array2
18.byte 1
19.section .fini_arrayfoo
20.byte 1
21.section .preinit_array
22.byte 1
23.section .preinit_array2
24.byte 1
25.section .preinit_arrayfoo
26.byte 1
27.section .note
28.byte 1
29.section .note2
30.byte 1
31.section .notefoo
32.byte 1
33# CHECK:        Name: .nobits
34# CHECK-NEXT:   Type: SHT_PROGBITS
35# CHECK:        Name: .nobits2
36# CHECK-NEXT:   Type: SHT_PROGBITS
37# CHECK:        Name: .nobitsfoo
38# CHECK-NEXT:   Type: SHT_PROGBITS
39# CHECK:        Name: .init_array
40# CHECK-NEXT:   Type:  SHT_INIT_ARRAY
41# CHECK:        Name: .init_array2
42# CHECK-NEXT:   Type: SHT_PROGBITS
43# CHECK:        Name: .init_arrayfoo
44# CHECK-NEXT:   Type: SHT_PROGBITS
45# CHECK:        Name: .fini_array
46# CHECK-NEXT:   Type: SHT_FINI_ARRAY
47# CHECK:        Name: .fini_array2
48# CHECK-NEXT:   Type: SHT_PROGBITS
49# CHECK:        Name: .fini_arrayfoo
50# CHECK-NEXT:   Type: SHT_PROGBITS
51# CHECK:        Name: .preinit_array
52# CHECK-NEXT:   Type: SHT_PREINIT_ARRAY
53# CHECK:        Name: .preinit_array2
54# CHECK-NEXT:   Type: SHT_PROGBITS
55# CHECK:        Name: .preinit_arrayfoo
56# CHECK-NEXT:   Type: SHT_PROGBITS
57# CHECK:        Name: .note
58# CHECK-NEXT:   Type: SHT_NOTE
59# CHECK:        Name: .note2
60# CHECK-NEXT:   Type: SHT_NOTE
61# CHECK:        Name: .notefoo
62# CHECK-NEXT:   Type: SHT_NOTE
63