[PATCH] D66734: [llvm-readobj/llvm-readelf] - Report a proper warning when dumping a broken dynamic relocation.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 26 05:10:09 PDT 2019
grimar created this revision.
grimar added reviewers: jhenderson, MaskRay, rupprecht.
Herald added a subscriber: seiya.
When we have a dynamic relocation with a broken symbol's st_name,
tools report a useless error: "Invalid data was encountered while parsing the file".
After this change we report a warning + "<corrupt>" as a symbol name.
https://reviews.llvm.org/D66734
Files:
include/llvm/Object/ELFTypes.h
test/Object/invalid.test
test/tools/llvm-readobj/elf-broken-dynamic-reloc-name.test
tools/llvm-readobj/ELFDumper.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66734.217119.patch
Type: text/x-patch
Size: 5920 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190826/c0d51411/attachment.bin>
More information about the llvm-commits
mailing list