Thread (12 messages) 12 messages, 5 authors, 2025-02-25

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

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help