This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objdump] - Disassemble non-executable sections if specifically requested.
ClosedPublic

Authored by grimar on Jun 4 2019, 3:28 AM.

Details

Summary

This is https://bugs.llvm.org/show_bug.cgi?id=41897.

Previously -d + -j .data had no effect, that wasn't consistent with GNU,
which proccesses .data in that case. With this patch we follow this behavior.

Diff Detail

Event Timeline

grimar created this revision.Jun 4 2019, 3:28 AM
grimar updated this revision to Diff 202894.Jun 4 2019, 3:30 AM
  • Updated test case.

The changes in this patch look good, but you should probably also add a test case to section-filter-disasm.test. The section-filter-relocs.test case is more intended to test the interaction with -r.

grimar updated this revision to Diff 202928.Jun 4 2019, 6:46 AM
  • Addressed review comment.
  • Removed excessive comment from the test case.
grimar updated this revision to Diff 202930.Jun 4 2019, 6:47 AM
  • Remove Address of sections from the test case added.
MaskRay accepted this revision.Jun 4 2019, 8:13 AM
MaskRay added inline comments.
test/tools/llvm-objdump/X86/section-filter-disasm.test
6

Nit: typo disassembled

This revision is now accepted and ready to land.Jun 4 2019, 8:13 AM
rupprecht accepted this revision.Jun 4 2019, 4:46 PM
grimar updated this revision to Diff 203096.Jun 5 2019, 1:17 AM
  • Fixed comment.

James, are you OK with this version?

jhenderson accepted this revision.Jun 5 2019, 3:17 AM

LGTM, with one minor nit.

test/tools/llvm-objdump/X86/section-filter-disasm.test
5

with use of -> with the use of the

grimar closed this revision.Jun 5 2019, 4:36 AM
grimar marked an inline comment as done.