This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] - Don`t crash when --section-symbols is requested for an object w/o .symtab.
ClosedPublic

Authored by grimar on Aug 25 2020, 3:53 AM.

Details

Summary

llvm-readobj crashes when -S --section-symbols is used
on an object that has no symbol table.

The patch fixes it.

Depends on D86462.

Diff Detail

Event Timeline

grimar created this revision.Aug 25 2020, 3:53 AM
Herald added a project: Restricted Project. · View Herald Transcript
grimar requested review of this revision.Aug 25 2020, 3:53 AM
grimar edited the summary of this revision. (Show Details)
MaskRay accepted this revision.Aug 25 2020, 4:12 PM

Looks great!

This revision is now accepted and ready to land.Aug 25 2020, 4:12 PM
jhenderson accepted this revision.Aug 26 2020, 12:02 AM

LGTM too.