You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
806 B

## Ensures that dynamic section has sh_entsize correctly set.
# RUN: yaml2obj -DBITS=64 %s -o %t.64
# RUN: llvm-readobj --sections %t.64 | FileCheck %s -DENTSIZE=16
# RUN: yaml2obj -DBITS=32 %s -o %t.32
# RUN: llvm-readobj --sections %t.32 | FileCheck %s -DENTSIZE=8
!ELF
FileHeader:
Class: ELFCLASS[[BITS]]
Data: ELFDATA2LSB
Type: ET_DYN
Sections:
## Test default values set by yaml2obj.
- Name: .dynamic
Type: SHT_DYNAMIC
Flags: [ SHF_ALLOC, SHF_WRITE ]
## Test we can use an arbitrary value for sh_entsize.
- Name: .mydynamic
Type: SHT_DYNAMIC
EntSize: 0xFE
# CHECK: Name: .dynamic
# CHECK: EntrySize:
# CHECK-SAME: {{^}} [[ENTSIZE]]{{$}}
# CHECK: Name: .mydynamic
# CHECK: EntrySize:
# CHECK-SAME: {{^}} 254{{$}}