Re: [PATCH 17/17] perf annotate: Handle variables in 'sub', 'or' and many other instructions
From: Andi Kleen
Date: Fri Apr 13 2018 - 12:20:49 EST
On Fri, Apr 13, 2018 at 11:01:11AM -0300, Arnaldo Carvalho de Melo wrote:
> From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
>
> Just like is done for 'mov' and others that can have as source or
> targets variables resolved by objdump, to make them more compact:
>
> - orb $0x4,0x224d71(%rip) # 226ca4 <_rtld_global+0xca4>
> + orb $0x4,_rtld_global+0xca4
That's not equivalent. It could be non rip relative too. You would need
to keep at least the (%rip).
-Andi