================
@@ -0,0 +1,39 @@
+# RUN: yaml2obj --docnum=1 %s -o %t.o
+
+# RUN: llvm-readobj --headers %t.o 2>&1 | FileCheck %s 
--check-prefix=CASE-INVALID
+
+# CASE-INVALID: SectionHeaderOffset: 0
+# CASE-INVALID: ProgramHeaderCount: 65535 (corrupt)
+# CASE-INVALID: unable to dump program headers: program headers are longer 
than binary of size 336: e_phoff = 0x40, e_phnum = 65535, e_phentsize = 56
----------------
jh7370 wrote:

This doesn't feel like the right warning to be printing. We should just be 
printing something about the section header table missing or similar. We should 
probably not continue to try to print the program header table, if the program 
header count cannot be determined due to an invalid section header table.

https://github.com/llvm/llvm-project/pull/165278
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to