diff options
| author | 2026-08-20 11:31:16 +0530 | |
|---|---|---|
| committer | 2026-09-01 16:12:15 -0700 | |
| commit | 51794b107d54b3c9a8ebbe12a3b81d8495bd482c (patch) | |
| tree | b7497085066646d3748fd1711c419a14810f5ffa /scripts/Makefile.thinlto | |
| parent | kbuild: use prefix-map for host and user progs (diff) | |
scripts/gcc-plugins: suppress recorded GCC switches for extmod builds
With GCC plugins enabled, external module builds can record
-fplugin=... paths in DWARF producer metadata via
-grecord-gcc-switches, leaking host/build specific paths and
triggering QA checks.
Handle this in scripts/Makefile.gcc-plugins for KBUILD_EXTMOD
builds by adding -gno-record-gcc-switches to plugin cflags.
This keeps plugin behavior unchanged while avoiding absolute
plugin path leakage in external module debug metadata.
Suggested-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/all/20260817185146.GC1249844@ax162/
Signed-off-by: Jaihind Yadav <jaihindy@qti.qualcomm.com>
Link: https://patch.msgid.link/20260820060116.786173-1-jaihindy@qti.qualcomm.com
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
