This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objdump] --syms: print "%016" PRIx64 instead of "%08" PRIx64 for 64-bit objects
ClosedPublic

Authored by MaskRay on Mar 3 2020, 5:29 PM.

Details

Diff Detail

Event Timeline

MaskRay created this revision.Mar 3 2020, 5:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2020, 5:29 PM
grimar accepted this revision.Mar 4 2020, 2:02 AM

LGTM with ELF32 and ELF64.

llvm/test/tools/llvm-objdump/symbol-table-elf.test
4

Lets use ELF32 and ELF64 as it is more common?

19

I guess it is fine for this patch.

But FTR, it seems this test might be improved. Probably 64 bit values also should be used
to demonstrate we can dump them. And testing of symbol sizes would also probably be not harmful.

This revision is now accepted and ready to land.Mar 4 2020, 2:02 AM
MaskRay added a comment.EditedMar 4 2020, 8:23 AM

I will fix/improve the lld/test/ELF tests. Some should use llvm-readelf -s instead of llvm-objdump -t. The BFD flags (g and l) in llvm-objdump output may cause another change. The llvm-readelf -s output is stable.

MaskRay updated this revision to Diff 248250.Mar 4 2020, 10:58 AM

Fix lld/test/ELF tests

MaskRay marked an inline comment as done.Mar 4 2020, 10:59 AM
This revision was automatically updated to reflect the committed changes.