1 ## In this case, we have a program header with a file size that
2 ## overflows the binary size. Check llvm-objcopy doesn't crash
3 ## and report this error properly.
5 # RUN: yaml2obj --docnum=1 %s -o %t1.o
6 # RUN: not llvm-objcopy %t1.o 2>&1 | FileCheck %s --check-prefix=ERR1
7 # ERR1: error: program header with offset 0x78 and file size 0x100000 goes past the end of the file
24 ## A similar case, but now the p_offset property of the program header is too large.
26 # RUN: yaml2obj --docnum=2 %s -o %t2.o
27 # RUN: not llvm-objcopy %t2.o 2>&1 | FileCheck %s --check-prefix=ERR2
28 # ERR2: error: program header with offset 0x100000 and file size 0x1 goes past the end of the file