objdump --no-addresses

Fangrui Song i@maskray.me
Thu Apr 16 06:49:16 GMT 2020


On 2020-04-16, Alan Modra wrote:
>On Wed, Apr 15, 2020 at 12:10:27PM -0700, Fangrui Song wrote:
>> In llvm-objdump, --no-leading-addr does this job. I think mentioning
>> `leading` may be appropriate here because lots of addresses are not
>> hidden by the proposed `--no-addresses` patch.
>
>I expect that objdump --no-addresses will be extended to remove more.
>There are lots of things it could do to make comparing compiler output
>easier, for example, removing pc-relative offsets.
>
>-- 
>Alan Modra
>Australia Development Lab, IBM

For llvm-objdump, I changed it to display the target address instead of
`. + offset` in https://reviews.llvm.org/D76907 and several follow-ups
(b, bl, beq (Bcc) need separate changes)
(I changed x86 and aarch64 as well.)

I guess the `. + offset` form may be more suitable when comparing two -d output.
Do you have a suggestion for the option enabling the `. + offset` output
or do you other ideas making the output easier for -d comparison?


More information about the Binutils mailing list