This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objdump] Fix -R display and support ET_EXEC
ClosedPublic

Authored by MaskRay on Sep 27 2021, 2:56 PM.

Details

Summary
  • Add a newline before DYNAMIC RELOCATION RECORDS (see D101796)
  • Add the missing OFFSET TYPE VALUE line
  • Align columns

Note: llvm-readobj/ELFDumper.cpp loadDynamicTable has sophisticated PT_DYNAMIC
code which is unavailable in llvm-objdump.

Diff Detail

Event Timeline

MaskRay created this revision.Sep 27 2021, 2:56 PM
MaskRay requested review of this revision.Sep 27 2021, 2:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 27 2021, 2:56 PM
This revision is now accepted and ready to land.Sep 27 2021, 6:05 PM
jhenderson accepted this revision.Sep 28 2021, 1:06 AM

LGTM, with one other suggestion.

llvm/test/tools/llvm-objdump/ELF/dynamic-relocs.test
20–21

It might be interesting to perform one of these runs (or an additional run) with an arbitrary ELF type e.g. 0x1234, to better show that the type doesn't matter at all.

MaskRay updated this revision to Diff 375618.Sep 28 2021, 9:56 AM
MaskRay marked an inline comment as done.

use an arbitrary type

This revision was landed with ongoing or failed builds.Sep 28 2021, 9:58 AM
This revision was automatically updated to reflect the committed changes.
llvm/test/tools/llvm-objdump/ELF/dynamic-relocs.test