1## Test how we handle the case when the e_phoff field is invalid. 2# RUN: yaml2obj %s -o %t 3# RUN: not llvm-objdump --private-headers %t 2>&1 | \ 4# RUN: FileCheck -DFILE=%t %s --check-prefix=INVALID-PHOFF 5 6# INVALID-PHOFF: Program Header: 7# INVALID-PHOFF-NEXT: warning: '[[FILE]]': unable to read program headers: program headers are longer than binary of size 280: e_phoff = 0xffffff, e_phnum = 0, e_phentsize = 0 8# INVALID-PHOFF-NEXT: error: '[[FILE]]': program headers are longer than binary of size 280: e_phoff = 0xffffff, e_phnum = 0, e_phentsize = 0 9 10--- !ELF 11FileHeader: 12 Class: ELFCLASS64 13 Data: ELFDATA2LSB 14 Type: ET_EXEC 15 Machine: EM_X86_64 16 EPhOff: 0xffffff 17