Currently, if 2 symbols have the same address, the first symbol name is not
printed during disassembly, therefore missing it completely in the disassembled
text. This patch changes it to print first symbol's name in the case described.
Details
Details
- Reviewers
• espindola
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Given
foo:
bar:
nop
gnu objdump will print
0000000000000000 <bar>:
0: 90 nop
With this patch we would print both foo and bar, correct? Why is this better? Should we report a bug on gnu objdump?
Comment Actions
Why is this better?
I know I've hit aliased functions in the past and had to run nm or something to find out where they are instead of just grepping the disassembly. So I'm definitely in favour.
Comment Actions
As a compromise, LGTM if you first report a bug on GNU objdump so that we find out if they have any rationale for printing only one of the symbols.