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

Reply via email to