Re: [PATCH 12/27] kbuild: Defer running objtool to link time for all CFG features
From: Nathan Chancellor
Date: Fri Aug 28 2026 - 15:28:14 EST
On Fri, Aug 28, 2026 at 11:19:52AM -0700, Josh Poimboeuf wrote:
> That was actually on purpose.
>
> Before this patch, NOINSTR_VALIDATION was a weird special case, where
> objtool ran on individual TUs (with all the objtool-args-y), and then
> ran again on vmlinux.o (without objtool-args-y except for --werror).
>
> This patch makes NOINSTR_VALIDATION just another OBJTOOL_DEFERRED
> feature which runs deferred, and *not* on TUs, so now it gets all the
> args like the others.
>
> That was indeed non-obvious, I'll add it to the commit log for v2.
Ah okay, that makes sense now that I have zoomed out a bit, got tunnel
vision there. Adding that explanation to the commit message sounds good
to me, thanks!
--
Cheers,
Nathan