Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / yaml2obj / ELF / ent-size.yaml
blob60b2a553840d389745dd27794777331ebf0c7f3b
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 Sections:
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
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: }