[llvm-bugs] [Bug 42215] New: [llvm-readobj] - Tool fails to dump the object if .dynsym has sh_link field set to 0.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 10 02:48:41 PDT 2019


            Bug ID: 42215
           Summary: [llvm-readobj] - Tool fails to dump the object if
                    .dynsym has sh_link field set to 0.
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-readobj
          Assignee: unassignedbugs at nondot.org
          Reporter: grimar at accesssoftek.com
                CC: jh7370.2008 at my.bristol.ac.uk, llvm-bugs at lists.llvm.org

It also applies to any other invalid value of sh_link.

Tool reports:
  error: invalid sh_type for string table, expected SHT_STRTAB
and exits

while GNU readelf reports a warning and continues dumping:

Section Headers:
  [Nr] Name              Type             Address           Offset
       Size              EntSize          Flags  Link  Info  Align
  [ 0]                   NULL             0000000000000000  00000000
       0000000000000000  0000000000000000           0     0     0
readelf: Warning: [ 1]: Link field (1711276134) should index a string section.
  [ 1] .dynsym           DYNSYM           0000000000000000  00000180
       0000000000000002  0000000000000018   A      1711276134     0     0

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/20190610/776fe3db/attachment.html>

More information about the llvm-bugs mailing list