]> www.infradead.org Git - users/jedix/linux-maple.git/commit
objtool: Remove --unret dependency on --rethunk
authorJosh Poimboeuf <jpoimboe@kernel.org>
Fri, 14 Mar 2025 19:29:04 +0000 (12:29 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 17 Mar 2025 10:36:00 +0000 (11:36 +0100)
commit764d956145f21a0297004e9c67d7d60bde14e709
treee30ec024fe7f56338b4201422dc1a1c5f27e8148
parent0a7fb6f07e3ad497d31ae9a2082d2cacab43d54a
objtool: Remove --unret dependency on --rethunk

With unret validation enabled and IBT/LTO disabled, objtool runs on TUs
with --rethunk and on vmlinux.o with --unret.  So this dependency isn't
valid as they don't always run on the same object.

This error never triggered before because --unret is always coupled with
--noinstr, so the first conditional in opts_valid() returns early due to
opts.noinstr being true.

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/c6f5635784a28ed4b10ac4307b1858e015e6eff0.1741975349.git.jpoimboe@kernel.org
tools/objtool/builtin-check.c