[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
Fri Jul 29 10:05:09 PDT 2022


Prabhuk updated this revision to Diff 448669.
Prabhuk added a comment.

Added tests that will cover the `printSectionDetails()` function no section header use cases.
Rendering the warning `e_shstrndx == SHN_XINDEX, but the section header table is empty` along with no section use case along with the new no sections in the file message.


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/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.448669.patch
Type: text/x-patch
Size: 6150 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220729/f9090b00/attachment.bin>


More information about the llvm-commits mailing list