llvm-project/llvm/test/tools/yaml2obj/elf-no-phdrs.yaml

16 lines
354 B
YAML

## Check that e_phoff and e_phentsize are set to 0 when there are no
## program headers.
# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj --file-headers %t | FileCheck %s
# CHECK: ProgramHeaderOffset: 0x0{{$}}
# CHECK: ProgramHeaderEntrySize: 0{{$}}
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64