[llvm-bugs] [Bug 41946] New: Don't use section name for section start symbol if later symbol exists

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 20 08:50:21 PDT 2019


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

            Bug ID: 41946
           Summary: Don't use section name for section start symbol if
                    later symbol exists
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-objdump
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: llvm-bugs at lists.llvm.org

llvm-objdump currently prints the section name as a symbol label for the first
address in a section being disassembled, if there are no other symbols
targeting the location. However, GNU objdump prints an expression relative to
the first symbol in the section:

objdump -d test.o

test.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000001000 <sym-0x1>:
    1000:       90                      nop

0000000000001001 <sym>:
    1001:       90                      nop

llvm-objdump  -d test.o

test.o:   file format ELF64-x86-64


Disassembly of section .text:

0000000000001000 .text:
    1000: 90                            nop

0000000000001001 sym:
    1001: 90                            nop

We should consider doing what GNU does here. The section name is not useful,
since it's the same as in the "Disassembly of section" and could be confused
with an actual section symbol at that location.

-- 
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/20190520/ca1924c8/attachment.html>


More information about the llvm-bugs mailing list