Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / yaml2obj / elf-ent-size.yaml
blob06b989945dbcccc57034709ffff1e41f3248ec56
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj --sections %t | FileCheck %s
4 !ELF
5 FileHeader:
6   Class:           ELFCLASS64
7   Data:            ELFDATA2LSB
8   OSABI:           ELFOSABI_FREEBSD
9   Type:            ET_REL
10   Machine:         EM_X86_64
11 Sections:
12   - Type:            SHT_PROGBITS
13     Name:            .strings
14     Flags:           [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
15     AddressAlign:    0x04
16     Content:         "FFFFFFFFFFFFFFFF"
17     EntSize:         0x1
18   - Name:            .mydynamic
19     Type:            SHT_DYNAMIC
20     EntSize:         0x0
23 ## Check we were able to set entry size for .strings and .mydynamic
24 # CHECK:       Name: .strings
25 # CHECK-NEXT:   Type: SHT_PROGBITS
26 # CHECK-NEXT:   Flags [
27 # CHECK-NEXT:     SHF_ALLOC
28 # CHECK-NEXT:     SHF_MERGE
29 # CHECK-NEXT:     SHF_STRINGS
30 # CHECK-NEXT:   ]
31 # CHECK-NEXT:   Address:
32 # CHECK-NEXT:   Offset:
33 # CHECK-NEXT:   Size:
34 # CHECK-NEXT:   Link:
35 # CHECK-NEXT:   Info:
36 # CHECK-NEXT:   AddressAlignment:
37 # CHECK-NEXT:   EntrySize: 1
38 # CHECK-NEXT: }
39 # CHECK:        Name: .mydynamic
40 # CHECK-NEXT:   Type: SHT_DYNAMIC
41 # CHECK-NEXT:   Flags [
42 # CHECK-NEXT:   ]
43 # CHECK-NEXT:   Address:
44 # CHECK-NEXT:   Offset:
45 # CHECK-NEXT:   Size:
46 # CHECK-NEXT:   Link:
47 # CHECK-NEXT:   Info:
48 # CHECK-NEXT:   AddressAlignment:
49 # CHECK-NEXT:   EntrySize: 0
50 # CHECK-NEXT: }