This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objdump] Print "..." instead of random data for virtual sections
ClosedPublic

Authored by thegameg on Apr 19 2018, 9:09 AM.

Details

Summary

When disassembling with -D, skip virtual sections by printing "..." for each symbol.

This patch also implements MachOObjectFile::isSectionVirtual.

Test case comes from:

.zerofill __DATA,__common,_data64unsigned,472,3

Diff Detail

Repository
rL LLVM

Event Timeline

thegameg created this revision.Apr 19 2018, 9:09 AM
JDevlieghere added inline comments.Apr 19 2018, 9:13 AM
test/tools/llvm-objdump/macho-zerofill.test
1 ↗(On Diff #143108)

Any reason we can't use an asm test for this?

thegameg updated this revision to Diff 143110.Apr 19 2018, 9:49 AM

Thanks Jonas!

Added assembly test and a missing comment.

JDevlieghere accepted this revision.Apr 19 2018, 10:00 AM

Thanks Francis, LGTM!

This revision is now accepted and ready to land.Apr 19 2018, 10:00 AM
This revision was automatically updated to reflect the committed changes.
thegameg marked an inline comment as done.