[llvm-bugs] [Bug 40868] New: llvm-readelf should print "<unknown>" or similar for unknown ELF type field

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 26 08:04:12 PST 2019


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

            Bug ID: 40868
           Summary: llvm-readelf should print "<unknown>" or similar for
                    unknown ELF type field
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-readobj
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: jh7370.2008 at my.bristol.ac.uk, llvm-bugs at lists.llvm.org

If you create an ELF with an unknown ELF type e.g:

--- !ELF
FileHeader:
  Class:   ELFCLASS64
  Data:    ELFDATA2LSB
  Type:    0x42
  Machine: EM_X86_64

llvm-readelf produces the following output:

ELF Header:
<snip>
  Type:                              42
<snip>

GNU readelf produces the output as follows:
ELF Header:
<snip>
  Type:                              <unknown>: 42
<snip>

This is a little clearer, and would be preferable in the LLVM tool too.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190226/7e8fa5fc/attachment.html>


More information about the llvm-bugs mailing list