[all-commits] [llvm/llvm-project] a36de0: [llvm-readelf] Render messages similar to that of ...

Prabhuk via All-commits all-commits at lists.llvm.org
Wed Aug 17 09:51:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a36de097faf7ada39a5fd38ddc4cb8c8e258bd2e
      https://github.com/llvm/llvm-project/commit/a36de097faf7ada39a5fd38ddc4cb8c8e258bd2e
  Author: Prabhu Karthikeyan Rajasekaran <prabhukr at google.com>
  Date:   2022-08-17 (Wed, 17 Aug 2022)

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

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

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`.

Reviewed By: jhenderson, MaskRay

Differential Revision: https://reviews.llvm.org/D130670




More information about the All-commits mailing list