1# RUN: yaml2obj %s > %t 2# RUN: llvm-objcopy --strip-all-gnu %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 11Sections: 12 - Name: .dynstr 13 Type: SHT_STRTAB 14 Flags: [ SHF_ALLOC ] 15 - Name: .symtab.dyn 16 Type: SHT_SYMTAB 17 Flags: [ SHF_ALLOC ] 18 Type: SHT_NOBITS 19 - Name: .text 20 Type: SHT_PROGBITS 21 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 22 Size: 4 23 - Name: .debug_info 24 Type: SHT_PROGBITS 25 Flags: [ ] 26 AddressAlign: 0x1 27 Size: 4 28 - Name: .debug_loc 29 Type: SHT_PROGBITS 30 Flags: [ SHF_ALLOC ] 31 AddressAlign: 0x1 32 Size: 4 33 - Name: .comment 34 Type: SHT_PROGBITS 35 - Name: .random_section_name 36 Type: SHT_PROGBITS 37 - Name: .debug_not_a_real_debug_section 38 Type: SHT_PROGBITS 39 - Name: .rel.text 40 Type: SHT_REL 41 Info: .text 42 - Name: .rela.text 43 Type: SHT_RELA 44 Info: .text 45 46# CHECK: SectionHeaderCount: 8 47 48# CHECK: Name: .dynstr 49# CHECK: Name: .symtab.dyn 50# CHECK: Name: .text 51# CHECK: Name: .debug_loc 52# CHECK: Name: .comment 53# CHECK: Name: .random_section_name 54# CHECK: Name: .shstrtab 55