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