Re: [PATCH] x86/boot: Discard .interp sections
Nam Le <[email protected]> Wed, 8 Apr 2026 16:57:41 +0100
| Newsgroups | org.kernel.vger.linux-toolchains,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On 08/04/2026 16:21, Borislav Petkov wrote: > On Wed, Apr 08, 2026 at 02:30:06PM +0100, Nam Le wrote: >> I am hesitant on modifying the Makefile to add the --no-dynamic-linker >> flag since a previous kernel patch proposed this exact change but was >> rejected a while back: > > Ok, so how is Nix building kernels then? > > It sounds like they have some local fix for building the kernel. > I just double-checked and it seems Nix has a workaround to remove the --dynamic-linker flag before building the kernel. As I was hand-compiling the kernel rather than installing it from Nix, the workaround did not get applied. > And if so, why does the upstream kernel care? Regarding this, I just think the difference in behavior between ld.lld and ld.bfd is severe enough that handling this edge case is warranted. I am happy to leave this patch out though, or add something minimal like a conditional check to add --no-dynamic-linker if the linker is ld.lld.