[llvm-bugs] [Bug 40785] New: Print unknown st_other value if present in GNU output

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 20 03:04:03 PST 2019


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

            Bug ID: 40785
           Summary: Print unknown st_other value if present in GNU output
           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

llvm-readelf, when printing an unknown st_other value, simply prints "DEFAULT",
and doesn't list the actual value, unlike readelf:

C:\Work>readelf test.o --dyn-syms
Symbol table '.dynsym' contains 2 entries:
   Num:    Value  Size Type    Bind   Vis      Ndx Name
     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND
     1: 00000000     0 NOTYPE  LOCAL  DEFAULT [<other>: 4]   UND other

C:\Work>llvm-readelf test.o --dyn-syms
Symbol table '.dynsym' contains 2 entries:
   Num:    Value  Size Type    Bind   Vis      Ndx Name
     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND
     1: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND other

We can, and should do better, although I don't think we necessarily have to
match GNU's output here, we should at least print the relevant value somehow.

-- 
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/20190220/a8fc793f/attachment.html>


More information about the llvm-bugs mailing list