Recommit r371023 "[lib/ObjectYAML] - Stop calling error(1) when mapping the st_other...
[llvm-complete.git] / test / tools / yaml2obj / elf-sh-addralign.yaml
blobfa057ecf411327dfb38d1bd72c9f6184d5e32d4b
1 ## Check that yaml2obj takes in account section AddressAlign field.
3 # RUN: yaml2obj %s > %t
4 # RUN: llvm-readobj -S %t | FileCheck %s
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: }
21 !ELF
22 FileHeader:
23   Class:   ELFCLASS64
24   Data:    ELFDATA2LSB
25   Type:    ET_REL
26   Machine: EM_X86_64
27 Sections:
28   - Name:         .data
29     Type:         SHT_PROGBITS
30     AddressAlign: 256