[all-commits] [llvm/llvm-project] 4e2e78: [llvm-readelf] - Improve ELF type field dumping.

Georgii Rymar via All-commits all-commits at lists.llvm.org
Mon Dec 14 00:45:33 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e2e785ddd35c421a4df9453f17b8317d6b62b2c
      https://github.com/llvm/llvm-project/commit/4e2e785ddd35c421a4df9453f17b8317d6b62b2c
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-12-14 (Mon, 14 Dec 2020)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/ELF.h
    M llvm/test/tools/llvm-readobj/ELF/file-types.test
    R llvm/test/tools/llvm-readobj/ELF/types.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readelf] - Improve ELF type field dumping.

This is related to https://bugs.llvm.org/show_bug.cgi?id=40868.

Currently we don't print `OS Specific`/``Processor Specific`/`<unknown>`
prefixes when dumping the ELF file type. This is not consistent
with GNU readelf. The patch fixes it.

Also, this patch removes the `types.test`, because we already have
`file-types.test`, which tests more cases and this patch revealed that
we have such a duplicate.

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




More information about the All-commits mailing list