This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readelf] - Do not report a misleading warning when there is no string table.
ClosedPublic

Authored by grimar on Jul 2 2020, 6:15 AM.

Details

Summary

This is a follow-up for D82955, which allows to continue dumping when a symbol table is broken.
When we are unable to get the string table and trying to print symbols,
the existent tool logic together with D82955 reports an error:

"st_name (0x??) is past the end of the string table of size 0x??"

Though, when there is no string table, this message becomes misleading and excessive.
It is easy to fix it though and that is what this patch does.

Diff Detail

Event Timeline

grimar created this revision.Jul 2 2020, 6:15 AM
Herald added a project: Restricted Project. · View Herald Transcript
jhenderson accepted this revision.Jul 3 2020, 12:50 AM

LGTM, thanks!

This revision is now accepted and ready to land.Jul 3 2020, 12:50 AM
This revision was automatically updated to reflect the committed changes.