18 lines · plain
1## Test how we handle the case when the e_phoff field is invalid.2# RUN: yaml2obj %s -o %t3# RUN: llvm-objdump --private-headers %t 2>&1 | \4# RUN: FileCheck -DFILE=%t %s --check-prefix=INVALID-PHOFF5 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 = 08# INVALID-PHOFF-NEXT: warning: '[[FILE]]': program headers are longer than binary of size 280: e_phoff = 0xffffff, e_phnum = 0, e_phentsize = 09# INVALID-PHOFF-EMPTY:10 11--- !ELF12FileHeader:13 Class: ELFCLASS6414 Data: ELFDATA2LSB15 Type: ET_EXEC16 Machine: EM_X86_6417 EPhOff: 0xffffff18