1## Check that yaml2obj takes in account section AddressAlign field.
2
3# RUN: yaml2obj %s -o %t
4# RUN: llvm-readobj -S %t | FileCheck %s
5
6# CHECK:      Section {
7# CHECK:        Index:
8# CHECK:        Name: .data
9# CHECK-NEXT:   Type: SHT_PROGBITS
10# CHECK-NEXT:   Flags [
11# CHECK-NEXT:   ]
12# CHECK-NEXT:   Address: 0x0
13# CHECK-NEXT:   Offset: 0x{{[0-9A-F]*}}00
14# CHECK-NEXT:   Size:
15# CHECK-NEXT:   Link:
16# CHECK-NEXT:   Info:
17# CHECK-NEXT:   AddressAlignment: 256
18# CHECK-NEXT:   EntrySize:
19# CHECK-NEXT: }
20
21!ELF
22FileHeader:
23  Class: ELFCLASS64
24  Data:  ELFDATA2LSB
25  Type:  ET_REL
26Sections:
27  - Name:         .data
28    Type:         SHT_PROGBITS
29    AddressAlign: 256
30