Thread (14 messages) 14 messages, 2 authors, 13d ago

Re: [PATCH v2 4/6] objtool/powerpc: Skip jump destination analysis and unnanotated intra-function call warnings for --ftr-fixup

flat view

From: Shivang Upadhyay <hidden>
Date: 2026-09-30 06:12:51
Also in: linux-kbuild, lkml

On Tue, 2026-09-29 at 16:25 +0200, Peter Zijlstra wrote:
quoted
c00000000002a610 <system_reset_exception>:
c00000000002a610:       0e 01 4c 3c     addis   r2,r12,270
                         c00000000002a610: R_PPC64_REL16_HA   
.TOC.
c00000000002a614:       f0 6c 42 38     addi    r2,r2,27888
                         c00000000002a614: R_PPC64_REL16_LO   
.TOC.+0x4
c00000000002a618:       a6 02 08 7c     mflr    r0

This is happening because we should be looking for destination
symbols that are at absolute offsets instead of relative offsets.
Again, confused. We run objtool on objects, this is pre-linking,
there
are no absolute offsets.
Hi Peter,

This is the special requirement of patching jump assembly instructions
that we need to know where the jump is performed from/to. As per 5/6
objtool is run post link on vmlinux. If handling post-link information
is outside the scope of objtool, please let me know.

Regards,
~Shivang.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help