[PATCH] D57365: [llvm-readobj] Add a flag to dump just the section-to-segment mapping.

Matt Davis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 28 17:19:14 PST 2019


mattd created this revision.
mattd added a reviewer: khemant.
Herald added a subscriber: rupprecht.

The following patch introduces a new function `printSectionMapping` which is responsible for dumping just the section-to-segment mapping. 
This patch also introduces a n option `-section-mapping` that outputs that mapping without the program headers.

Previously, this functionality was controlled by `printProgramHeaders`, and the output from `-program-headers` has not been changed.  I am happy to change the option name, I copied  the name that was displayed when outputting the mapping table.


https://reviews.llvm.org/D57365

Files:
  llvm/tools/llvm-readobj/ELFDumper.cpp
  llvm/tools/llvm-readobj/ObjDumper.h
  llvm/tools/llvm-readobj/llvm-readobj.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57365.183995.patch
Type: text/x-patch
Size: 6129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190129/2a74428d/attachment.bin>


More information about the llvm-commits mailing list