[all-commits] [llvm/llvm-project] bdef1f: [llvm-readobj] - Dump the ELF file type better.

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Dec 23 00:13:49 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bdef1f87aba656a64b34f76d2a6613b6e9299a03
      https://github.com/llvm/llvm-project/commit/bdef1f87aba656a64b34f76d2a6613b6e9299a03
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-12-23 (Wed, 23 Dec 2020)

  Changed paths:
    R llvm/test/Object/elf-unknown-type.test
    M llvm/test/tools/llvm-readobj/ELF/file-types.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj] - Dump the ELF file type better.

Currently llvm-readelf might print "OS Specific/Processor Specific/<unknown>"
hint when dumping the ELF file type. The patch teaches llvm-readobj to do the same.

This fixes https://bugs.llvm.org/show_bug.cgi?id=40868

I am removing `Object/elf-unknown-type.test` test because it is not in the right place,
it is outdated and very limited.
The `readobj/ELF/file-types.test` checks the functionality much better.

Differential revision: https://reviews.llvm.org/D93689




More information about the All-commits mailing list