1## Ensures that dynamic section has sh_entsize correctly set. 2 3# RUN: yaml2obj -DBITS=64 %s -o %t.64 4# RUN: llvm-readobj --sections %t.64 | FileCheck %s -DENTSIZE=16 5# RUN: yaml2obj -DBITS=32 %s -o %t.32 6# RUN: llvm-readobj --sections %t.32 | FileCheck %s -DENTSIZE=8 7 8!ELF 9FileHeader: 10 Class: ELFCLASS[[BITS]] 11 Data: ELFDATA2LSB 12 Type: ET_DYN 13Sections: 14## Test default values set by yaml2obj. 15 - Name: .dynamic 16 Type: SHT_DYNAMIC 17 Flags: [ SHF_ALLOC, SHF_WRITE ] 18## Test we can use an arbitrary value for sh_entsize. 19 - Name: .mydynamic 20 Type: SHT_DYNAMIC 21 EntSize: 0xFE 22 23# CHECK: Name: .dynamic 24# CHECK: EntrySize: 25# CHECK-SAME: {{^}} [[ENTSIZE]]{{$}} 26# CHECK: Name: .mydynamic 27# CHECK: EntrySize: 28# CHECK-SAME: {{^}} 254{{$}} 29