[llvm-bugs] [Bug 49088] New: Don't print "Section: <?>" for ET_CORE file note printing

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 8 00:22:06 PST 2021


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

            Bug ID: 49088
           Summary: Don't print "Section: <?>" for ET_CORE file note
                    printing
           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

Spun off from https://reviews.llvm.org/D74393. LLVM style printing of ELF notes
can be a little confusing for ET_CORE files, and quite possibly other ELFs with
no sections. In such cases, rather than printing a section name for each note
region (e.g. "Section: .note.foo"), llvm-readobj simply prints "Section: <?>",
which could lead people to wonder, why can't llvm-readobj load the section name
for this ELF? It would be less confusing if it simply didn't print the
"Section:" line in those situations (the offset and size is already printed, so
there is still enough information to find the note data if needed). This would
be similar to GNU style printing which prints "Displaying notes found at file
offset xxxxx with length xxxxx:" instead of "Displaying notes found in:
.note.foo".

-- 
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/20210208/5d86ac99/attachment.html>


More information about the llvm-bugs mailing list