This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj/elf] - Don't fail when dumping an archive with a member that can't be recognized.
ClosedPublic

Authored by grimar on Aug 28 2020, 3:34 AM.

Details

Summary

Imagine we have an archive that has 3 objects in the following order:
<valid known object>,<unknown object> and <valid known object>.

Currently llvm-readelf/obj report an error and stops dumping in the middle.
This patch changes the error reported to warning.

I am improving this warning in a follow-up that will be posted soon.

Diff Detail

Event Timeline

grimar created this revision.Aug 28 2020, 3:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2020, 3:35 AM
Herald added a subscriber: rupprecht. · View Herald Transcript
grimar requested review of this revision.Aug 28 2020, 3:35 AM
MaskRay accepted this revision.Aug 28 2020, 8:12 AM

with an object that can't be recognized.

object -> member or element.

This revision is now accepted and ready to land.Aug 28 2020, 8:12 AM
grimar retitled this revision from [llvm-readobj/elf] - Don't fail when dumping an archive with an object that can't be recognized. to [llvm-readobj/elf] - Don't fail when dumping an archive with a member that can't be recognized..Aug 31 2020, 3:05 AM
jhenderson added inline comments.Sep 1 2020, 2:06 AM
llvm/test/tools/llvm-readobj/archive.test
89–90
grimar added inline comments.Sep 1 2020, 4:03 AM
llvm/test/tools/llvm-readobj/archive.test
89–90