Re: [PATCH 1/2] kbuild: Move testing of '-mfentry' back to Makefile from Kconfig

From: Kees Cook

Date: Wed Oct 21 2026 - 10:50:18 EST




On October 20, 2026 2:52:18 PM PDT, Nathan Chancellor <nathan@xxxxxxxxxx> wrote:
>Unlike cc-option in Kbuild, cc-option in Kconfig does not test options
>with either bit ('-m32' / '-m64') or endianness ('-mbig-endian' /
>'-mlittle-endian') flags because which flag to use may depend on the
>result of the configuration stage.

Oooh, yeah... Do we have any silent failures due to this in other places? On x86 I worry we'll see similar problems. Stack protector arg checking comes to mind. I will go see if I can find anything...

-Kees

--
Kees Cook