Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / yaml2obj / section-type.yaml
blobad2edd942cc2aaaddfc58ecf530b770c9474fdba
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj --sections %t | FileCheck %s
4 # CHECK: Name: enum
5 # CHECK: Type: SHT_PROGBITS
6 # CHECK: Name: machine-specific
7 # CHECK: Type: SHT_X86_64_UNWIND
8 # CHECK: Name: hex
9 # CHECK: Type: Unknown (0xABCD)
10 # CHECK: Name: decimal
11 # CHECK: Type: Unknown (0x4D2)
13 --- !ELF
14 FileHeader:
15   Class:   ELFCLASS64
16   Data:    ELFDATA2LSB
17   Type:    ET_REL
18   Machine: EM_X86_64
19 Sections:
20   - Name:  enum
21     Type:  SHT_PROGBITS
22   - Name:  machine-specific
23     Type:  SHT_X86_64_UNWIND
24   - Name:  hex
25     Type:  0xabcd
26   - Name:  decimal
27     Type:  1234