• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s > %t
2# RUN: llvm-objcopy -R .symtab %t %t2
3# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
4
5!ELF
6FileHeader:
7  Class:           ELFCLASS64
8  Data:            ELFDATA2LSB
9  Type:            ET_REL
10  Machine:         EM_X86_64
11
12#CHECK: SectionHeaderCount: 3
13
14#CHECK:        Sections [
15#CHECK-NEXT:     Section {
16#CHECK-NEXT:       Index: 0
17#CHECK-NEXT:       Name:  (0)
18#CHECK-NEXT:       Type: SHT_NULL (0x0)
19#CHECK-NEXT:       Flags [ (0x0)
20#CHECK-NEXT:       ]
21#CHECK-NEXT:       Address: 0x0
22#CHECK-NEXT:       Offset: 0x0
23#CHECK-NEXT:       Size: 0
24#CHECK-NEXT:       Link: 0
25#CHECK-NEXT:       Info: 0
26#CHECK-NEXT:       AddressAlignment: 0
27#CHECK-NEXT:       EntrySize: 0
28#CHECK-NEXT:     }
29#CHECK-NEXT:     Section {
30#CHECK-NEXT:       Index: 1
31#CHECK-NEXT:       Name: .strtab
32#CHECK-NEXT:       Type: SHT_STRTAB (0x3)
33#CHECK-NEXT:       Flags [ (0x0)
34#CHECK-NEXT:       ]
35#CHECK-NEXT:       Address: 0x0
36#CHECK-NEXT:       Offset:
37#CHECK-NEXT:       Size: 1
38#CHECK-NEXT:       Link: 0
39#CHECK-NEXT:       Info: 0
40#CHECK-NEXT:       AddressAlignment: 1
41#CHECK-NEXT:       EntrySize: 0
42#CHECK-NEXT:     }
43#CHECK-NEXT:     Section {
44#CHECK-NEXT:       Index: 2
45#CHECK-NEXT:       Name: .shstrtab (1)
46#CHECK-NEXT:       Type: SHT_STRTAB (0x3)
47#CHECK-NEXT:       Flags [ (0x0)
48#CHECK-NEXT:       ]
49#CHECK-NEXT:       Address: 0x0
50#CHECK-NEXT:       Offset:
51#CHECK-NEXT:       Size:
52#CHECK-NEXT:       Link: 0
53#CHECK-NEXT:       Info: 0
54#CHECK-NEXT:       AddressAlignment: 1
55#CHECK-NEXT:       EntrySize: 0
56#CHECK-NEXT:     }
57#CHECK-NEXT:   ]
58