[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
Wed Jul 27 16:14:51 PDT 2022


Prabhuk created this revision.
Prabhuk added a reviewer: mcgrathr.
Herald added subscribers: rupprecht, emaste.
Herald added a reviewer: jhenderson.
Herald added a project: All.
Prabhuk requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

When there are no section headers section information printed by llvm-readelf is not useful and unnecessarily verbose.  When there are no program headers there's a similar verbose output shown when section mapping is requested. Simplifying the message shown in these cases to match the behavior of `GNU binuntils readelf`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130670

Files:
  llvm/test/tools/llvm-readobj/ELF/gnu-section-mapping-no-phdrs.test
  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.448202.patch
Type: text/x-patch
Size: 4847 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220727/2664a21b/attachment.bin>


More information about the llvm-commits mailing list