Re: [PATCH v2] kstack_erase: suppress -grecord-gcc-switches for external module builds
Nathan Chancellor <[email protected]>
| Newsgroups | org.kernel.vger.linux-modules,org.kernel.vger.linux-hardening,org.kernel.vger.linux-kbuild,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260814224550.GA3553101@ax162> |
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