[PATCH] D130670: [llvm-readelf] Render messages similar to that of `GNU binutils readelf` when no sections and/or no headers.

Prabhu Karthikeyan Rajasekaran via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 15 17:58:47 PDT 2022


Prabhuk updated this revision to Diff 452862.
Prabhuk marked 7 inline comments as done.
Prabhuk added a comment.

Program header rendering cleanup.

Rendering "no program header" message should not affect readelf invocations that request for section information only. Updated the PrintProgramHeader function and the corresponding tests.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130670/new/

https://reviews.llvm.org/D130670

Files:
  llvm/test/tools/llvm-readobj/ELF/many-sections.s
  llvm/test/tools/llvm-readobj/ELF/no-phdrs.test
  llvm/test/tools/llvm-readobj/ELF/no-shdrs.test
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130670.452862.patch
Type: text/x-patch
Size: 5387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220816/62309332/attachment.bin>


More information about the llvm-commits mailing list