Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-objdump / non-archive-object.test
blobb1884102c02e6f35415d07cb132abb429f3dc1b6
1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-objdump -a %t | FileCheck %s
4 # If this test has not crashed, then this test passed.
5 # CHECK: file format ELF64-x86-64
7 !ELF
8 FileHeader:
9   Class:           ELFCLASS64
10   Data:            ELFDATA2LSB
11   Type:            ET_EXEC
12   Machine:         EM_X86_64
13 Sections:
14   - Name:            .bss
15     Type:            SHT_NOBITS
16     Flags:           [ SHF_ALLOC ]
17     AddressAlign:    0x0000000000000010
18     Size:            64
19   - Name:            .text
20     Type:            SHT_PROGBITS
21     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
22     AddressAlign:    0x0000000000000010
23     Content:         "01234567"
24     Size:            4