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: unassignedb...@nondot.org
          Reporter: jh7370.2...@my.bristol.ac.uk
                CC: jh7370.2...@my.bristol.ac.uk, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to