Re: [PATCH 2/4] scripts/Kconfig.toolchain: Do not dynamically probe '-fno-addrsig'
From: Nick Desaulniers
Date: Wed Nov 11 2026 - 13:51:02 EST
On Wed, Nov 11, 2026 at 10:36 AM Nathan Chancellor <nathan@xxxxxxxxxx> wrote:
>
> On Wed, Nov 11, 2026 at 08:51:05AM -0800, Nick Desaulniers wrote:
> > Jordan, I know you were playing with -Wl,--icf=all recently. Looks
> > like the kernel does not use it; AFAIK, no one has ever tried. Even
> > -Wl,--icf=safe. Worth a shot to see if it boots. If we did, we'd
> > have to update this kconfig check (the linker flag is only supported
> > by LLD). Even if the result doesn't boot, it's perhaps worth doing
> > builds with BOTH to see what kind of savings are possible at the
> > limit.
>
> FWIW, ICF came up once before through OpenMandriva defaulting it on in
> their toolchain.
>
> https://github.com/ClangBuiltLinux/linux/issues/1341
oh, I forgot about that.
maybe worth researching at some point. Low priority, but filed
https://github.com/ClangBuiltLinux/linux/issues/2189
to track this at least.
--
Thanks,
~Nick Desaulniers