blob: 3e6d0d0222fb42fbdfbb7e5aad07c74f71543122 [file] [log] [blame]
Jake Ehrlichfabddf12017-11-13 22:02:07 +00001# RUN: yaml2obj %s > %t
2# RUN: llvm-objcopy --strip-all %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:
Jake Ehrlich6ad72d02017-11-27 18:56:01 +000012 - Name: .bss
Jake Ehrlichfabddf12017-11-13 22:02:07 +000013 Type: SHT_NOBITS
Jake Ehrlich6ad72d02017-11-27 18:56:01 +000014 Flags: [ SHF_ALLOC ]
Jake Ehrlichfabddf12017-11-13 22:02:07 +000015 - Name: .text
16 Type: SHT_PROGBITS
17 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Jake Ehrlich6ad72d02017-11-27 18:56:01 +000018 - Name: .blarg
Jake Ehrlichfabddf12017-11-13 22:02:07 +000019 Type: SHT_PROGBITS
20 Flags: [ ]
Jake Ehrlich6ad72d02017-11-27 18:56:01 +000021 - Name: .gnu.warning.foo
Jake Ehrlichfabddf12017-11-13 22:02:07 +000022 Type: SHT_PROGBITS
Jake Ehrlichfabddf12017-11-13 22:02:07 +000023
Jake Ehrlich6ad72d02017-11-27 18:56:01 +000024# CHECK: SectionHeaderCount: 5
Jake Ehrlichfabddf12017-11-13 22:02:07 +000025
Jake Ehrlich6ad72d02017-11-27 18:56:01 +000026# CHECK: Name: .bss
27# CHECK: Name: .text
28# CHECK: Name: .gnu.warning.foo
29# CHECK: Name: .shstrtab