1## Test how we handle the case when the e_phoff field is invalid. 2# RUN: yaml2obj %s -o %t 3# RUN: 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: warning: '[[FILE]]': program headers are longer than binary of size 280: e_phoff = 0xffffff, e_phnum = 0, e_phentsize = 0 9# INVALID-PHOFF-EMPTY: 10 11--- !ELF 12FileHeader: 13 Class: ELFCLASS64 14 Data: ELFDATA2LSB 15 Type: ET_EXEC 16 Machine: EM_X86_64 17 EPhOff: 0xffffff 18