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

From
Peter Zijlstra <peterz@infradead.org>
Date
2025-02-24 12:35:40
Also in
lkml, llvm
Reply to
Sathvika Vasireddy, 2025-02-21
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.
Thread (12 messages) 12 messages, 5 authors, last reply 2025-02-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help