objdump --no-addresses

Alan Modra amodra@gmail.com
Thu Apr 16 11:03:08 GMT 2020


On Wed, Apr 15, 2020 at 11:49:16PM -0700, Fangrui Song wrote:
> 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?

No, I haven't really thought about it that much.  I still use a sed
script to trim off branch instructions, which is the major annoyance
on powerpc.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list