[llvm-bugs] [Bug 43408] New: Change error to warning for invalid section index when dumping symbols

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 23 07:25:35 PDT 2019


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

            Bug ID: 43408
           Summary: Change error to warning for invalid section index when
                    dumping symbols
           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

In LLVM output style, llvm-readobj emits an error if you try to dump the
symbols (or dynamic symbols) of an object where one or more of the symbols
contains an invalid section index. This could happen because the ELF is
malformed, but for dynamic symbols at least, it can also happen with legitimate
objects when sections have been removed by e.g. llvm-objcopy --strip-sections,
if the object contains a dynamic symbol defined in the object. Note that GNU
output doesn't have this issue, because it doesn't try to look up the section
name. We should change this error to a warning to make this option usable in
such situations.

-- 
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/20190923/904edec2/attachment-0001.html>


More information about the llvm-bugs mailing list