Thread (10 messages) flat view 10 messages, 4 authors, 4d ago

Re: [PATCH v2] kstack_erase: suppress -grecord-gcc-switches for external module builds

From: Nathan Chancellor <nathan@kernel.org>
Date: 2026-08-14 22:45:54
Also in: linux-hardening, linux-kbuild, lkml

On Fri, Aug 14, 2026 at 08:23:02PM +0200, Nicolas Schier wrote:
If there is a need for external kmods to to have 

  make modules KCFLAGS=-gno-record-gcc-switches
Ah yeah, I forgot about KCFLAGS for the external module build. An
external module could also include

  ccflags-y := -gno-record-gcc-switches

in its build file as well if this is a requirement of their build setup.
Perhaps we could revisit this within Kbuild if there is enough interest
from various parties.

-- 
Cheers,
Nathan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help