Re: [tip:x86/core 1/1] vmlinux.o: warning: objtool: rcar_pcie_probe+0x13e: no-cfi indirect call!
From: Peter Zijlstra
Date: Mon Oct 13 2025 - 14:50:15 EST
On Mon, Oct 13, 2025 at 11:30:59AM -0700, Nathan Chancellor wrote:
> Is there any way for objtool to detect these instances and emit a
> slightly differently worded message? Figured it was worth asking ;)
Objtool doesn't really do value tracking, but I'll see if I can hack
something together.
That is, as long as its always:
xor %r11, %r11
cs call __x86_indirect_thunk_r11
without any instructions in between, it should be relatively straight
forward. But the moment there can be anything in between we need to
track the value of r11 back from the call or something.