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