1 ## Test how yaml2obj sets values for sh_entsize fields of relocation sections.
3 # RUN: yaml2obj -D BITS=64 %s -o %t64
4 # RUN: llvm-readelf --sections %t64 | FileCheck %s --check-prefix=ELF64
6 # RUN: yaml2obj -D BITS=32 %s -o %t32
7 # RUN: llvm-readelf --sections %t32 | FileCheck %s --check-prefix=ELF32
9 # ELF64: Name Type Address Off Size ES
10 # ELF64: .rela.default RELA 0000000000000000 000040 000000 18
11 # ELF64: .rel.default REL 0000000000000000 000040 000000 10
12 # ELF64: .relr.default RELR 0000000000000000 000040 000000 08
13 # ELF64: .rela.custom RELA 0000000000000000 000040 000000 ff
14 # ELF64: .rel.custom REL 0000000000000000 000040 000000 ff
15 # ELF64: .relr.custom RELR 0000000000000000 000040 000000 ff
17 # ELF32: Name Type Address Off Size ES
18 # ELF32: .rela.default RELA 00000000 000034 000000 0c
19 # ELF32: .rel.default REL 00000000 000034 000000 08
20 # ELF32: .relr.default RELR 00000000 000034 000000 04
21 # ELF32: .rela.custom RELA 00000000 000034 000000 ff
22 # ELF32: .rel.custom REL 00000000 000034 000000 ff
23 # ELF32: .relr.custom RELR 00000000 000034 000000 ff
27 Class: ELFCLASS[[BITS]]
31 ## Check default sh_entsize field values.
38 ## Check we can set sh_entsize fields to arbitrary values.