[RFC PATCH] objtool: Skip unannotated intra-function call warning for bl+mflr pattern

Peter Zijlstra peterz at infradead.org
Mon Feb 24 23:35:34 AEDT 2025


On Fri, Feb 21, 2025 at 02:20:41PM +0530, Sathvika Vasireddy wrote:

> Also, just out of curiosity, how does x86 do it? Does it not use a branch to
> next instruction approach?

x86_64 can use LEA like:

  #define _THIS_IP_ ({ unsigned long __here; asm ("lea 0(%%rip), %0" : "=r" (__here)); __here; })

32bit needs to call a function, read the stack value and return.


More information about the Linuxppc-dev mailing list