[yaml2obj] Add support for sh_addralign via `AddressAlign` key.
[oota-llvm.git] / test / Object / yaml2obj-elf-section-basic.yaml
1 # RUN: yaml2obj -format=elf %s | llvm-readobj -sections -section-data - | FileCheck %s
2 !ELF
3 FileHeader:
4   Class: ELFCLASS64
5   Data: ELFDATA2LSB
6   Type: ET_REL
7   Machine: EM_X86_64
8 Sections:
9   - Name: .text
10     Type: SHT_PROGBITS
11     Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
12     Address: 0xCAFEBABE
13     Content: EBFE
14     AddressAlign: 2
15
16 # CHECK:        Section {
17 # CHECK:          Index: 0
18 # CHECK:          Type: SHT_NULL (0x0)
19 #
20 # CHECK:        Section {
21 # CHECK:          Name: .text
22 # CHECK:          Type: SHT_PROGBITS (0x1)
23 # CHECK-NEXT:     Flags [ (0x6)
24 # CHECK-NEXT:       SHF_ALLOC (0x2)
25 # CHECK-NEXT:       SHF_EXECINSTR (0x4)
26 # CHECK-NEXT:     ]
27 # CHECK-NEXT:     Address: 0xCAFEBABE
28 # CHECK:          Size: 2
29 # CHECK:          AddressAlignment: 2
30 # CHECK:          SectionData (
31 # CHECK-NEXT:       0000: EBFE
32 # CHECK-NEXT:     )