[PATCH] D93689: [llvm-readobj] - Dump the ELF file type better.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 22 04:33:40 PST 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: rupprecht, emaste.
Herald added a reviewer: espindola.
grimar requested review of this revision.
Herald added a project: LLVM.

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.


https://reviews.llvm.org/D93689

Files:
  llvm/test/Object/elf-unknown-type.test
  llvm/test/tools/llvm-readobj/ELF/file-types.test
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93689.313294.patch
Type: text/x-patch
Size: 4434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201222/8679595b/attachment-0001.bin>


More information about the llvm-commits mailing list