1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-objcopy -R .symtab %t %t2
3 # RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s
12 #CHECK: SectionHeaderCount: 3
15 #CHECK-NEXT: Section {
17 #CHECK-NEXT: Name: (0)
18 #CHECK-NEXT: Type: SHT_NULL (0x0)
19 #CHECK-NEXT: Flags [ (0x0)
21 #CHECK-NEXT: Address: 0x0
22 #CHECK-NEXT: Offset: 0x0
26 #CHECK-NEXT: AddressAlignment: 0
27 #CHECK-NEXT: EntrySize: 0
29 #CHECK-NEXT: Section {
31 #CHECK-NEXT: Name: .strtab
32 #CHECK-NEXT: Type: SHT_STRTAB (0x3)
33 #CHECK-NEXT: Flags [ (0x0)
35 #CHECK-NEXT: Address: 0x0
40 #CHECK-NEXT: AddressAlignment: 1
41 #CHECK-NEXT: EntrySize: 0
43 #CHECK-NEXT: Section {
45 #CHECK-NEXT: Name: .shstrtab (1)
46 #CHECK-NEXT: Type: SHT_STRTAB (0x3)
47 #CHECK-NEXT: Flags [ (0x0)
49 #CHECK-NEXT: Address: 0x0
54 #CHECK-NEXT: AddressAlignment: 1
55 #CHECK-NEXT: EntrySize: 0