https://bugs.llvm.org/show_bug.cgi?id=40866
Bug ID: 40866
Summary: Improve error message for malformed ELF
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-readobj
Assignee: unassignedb...@nondot.org
Reporter: jh7370.2...@my.bristol.ac.uk
CC: jh7370.2...@my.bristol.ac.uk, llvm-bugs@lists.llvm.org
The error message produced by llvm-readobj when there is a parse failure is
unhelpful:
"Error reading file: Invalid data was encountered while parsing the file."
In the particular case I'm seeing it, the file has been modified such that the
offset/size fields of the dynamic segment point after the end of the file.
Ideally the error message would say what went wrong specifically, e.g.
"PT_DYNAMIC segment does not appear to be wholly within the file. p_offset =
0x1234, p_filesz = 0x4321, file size = 0x1000".
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs