1# Check that yaml2obj takes in account section AddressAlign field. 2 3# RUN: yaml2obj %s > %t 4# RUN: llvm-readobj -s %t | FileCheck %s 5 6# CHECK: Section { 7# CHECK: Index: 2 8# CHECK-NEXT: Name: .data 9# CHECK-NEXT: Type: SHT_PROGBITS 10# CHECK-NEXT: Flags [ 11# CHECK-NEXT: SHF_ALLOC 12# CHECK-NEXT: SHF_WRITE 13# CHECK-NEXT: ] 14# CHECK-NEXT: Address: 0x0 15# CHECK-NEXT: Offset: 0x{{[0-9A-F]*}}00 16# CHECK-NEXT: Size: 4 17# CHECK-NEXT: Link: 0 18# CHECK-NEXT: Info: 0 19# CHECK-NEXT: AddressAlignment: 256 20# CHECK-NEXT: EntrySize: 0 21# CHECK-NEXT: } 22 23--- !ELF 24FileHeader: 25 Class: ELFCLASS32 26 Data: ELFDATA2LSB 27 Type: ET_REL 28 Machine: EM_MIPS 29 Flags: [ EF_MIPS_CPIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32 ] 30 31Sections: 32 - Name: .text 33 Type: SHT_PROGBITS 34 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 35 AddressAlign: 8 36 Size: 4 37 - Name: .data 38 Type: SHT_PROGBITS 39 Flags: [ SHF_WRITE, SHF_ALLOC ] 40 AddressAlign: 256 41 Size: 4 42 43Symbols: 44 Global: 45 - Name: T0 46 Type: STT_FUNC 47 Section: .text 48 Size: 4 49 - Name: D0 50 Type: STT_OBJECT 51 Section: .data 52 Size: 4 53... 54