- Remove -mllvm flags that don't exist in gcc
- Set the shadow offset with -fasan-shadow-offset
This allows the arm64 GENERIC-KASAN kernel to build with gcc13.
Sponsored by: Arm Ltd
Differential D45300 Authored by andrew on May 22 2024, 2:35 PM.
Details Summary
This allows the arm64 GENERIC-KASAN kernel to build with gcc13. Sponsored by: Arm Ltd
Diff Detail
Event TimelineHerald added subscribers: rgrimes, emaste, imp. · View Herald TranscriptMay 22 2024, 2:35 PM2024-05-22 14:35:34 (UTC+0) Harbormaster completed remote builds in B57844: Diff 138922.May 22 2024, 2:35 PM2024-05-22 14:35:36 (UTC+0) andrew added a child revision: D45301: arm64: Disable outling atomics.May 22 2024, 2:35 PM2024-05-22 14:35:43 (UTC+0) Comment Actions I wonder if we want a CFLAGS_GEN=${CFLAGS:N-flto*:N-fno-common:N-fsanitize*:N-fno-sanitize*:N-fasan-shadow-offset*} or maybe a CFLAGS_NOSAN in kern.pre.mk so we're not having to remove arguments in so many places? Harbormaster completed remote builds in B58065: Diff 139508.Jun 5 2024, 1:03 PM2024-06-05 13:03:14 (UTC+0) andrew added a parent revision: D45498: sys/conf: Introduce NOSAN_CFLAGS and NOSAN_C.Jun 5 2024, 1:03 PM2024-06-05 13:03:29 (UTC+0) andrew edited the summary of this revision. (Show Details)Jun 5 2024, 1:15 PM2024-06-05 13:15:36 (UTC+0) This revision is now accepted and ready to land.Jun 5 2024, 4:51 PM2024-06-05 16:51:38 (UTC+0) Closed by commit rGe1d2967ba630: sys/conf: Support building kasan with gcc on arm64. · Explain WhyOct 15 2024, 5:25 PM2024-10-15 17:25:17 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 138922 |