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
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