1 # invalid-phdr.elf is generated by creating a simple elf file with yaml2obj:
11 # Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
12 # AddressAlign: 0x0000000000001000
16 # Flags: [ PF_X, PF_R ]
22 # Then editing the e_phoff in with a hexeditor to set it to 0xffffff
23 RUN: not llvm-objdump -private-headers %p/Inputs/invalid-phdr.elf 2>&1 \
26 CHECK: LLVM ERROR: program headers are longer than binary of size 4162: e_phoff = 0xffffff, e_phnum = 1, e_phentsize = 56