[llvm-bugs] [Bug 40862] New: llvm-readobj GNU output for dynamic table does not match GNU readelf output

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 26 02:50:50 PST 2019


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

            Bug ID: 40862
           Summary: llvm-readobj GNU output for dynamic table does not
                    match GNU readelf 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

There is no distinction between GNU and LLVM style in llvm-readobj's dynamic
table. The differences are small, but could be enough to break parsers. It also
does not print potentially useful information:

GNU readelf output:
Dynamic section at offset 0x1f0 contains 2 entries:
  Tag        Type                         Name/Value
 0x0000000000000015 (DEBUG)              0x0
 0x0000000000000000 (NULL)               0x0

llvm-readelf output:
DynamicSection [ (2 entries)
  Tag                Type                 Name/Value
  0x0000000000000015 DEBUG                0x0
  0x0000000000000000 NULL                 0x0
]

The important differences are:
1) no offset in the header in llvm-readelf output.
2) square brackets containing the list in llvm-readelf output.
3) Types are not bracketed in llvm-readelf output.

There may be others to do with interpretation (e.g. where the value represents
a string), but I have not analysed those.

-- 
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/2c3da2cd/attachment.html>


More information about the llvm-bugs mailing list