- 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
sys/conf: Support building kasan with gcc on arm64 andrew on May 22 2024, 2:35 PM. Authored by Tags None Referenced Files
Details
This allows the arm64 GENERIC-KASAN kernel to build with gcc13. Sponsored by: Arm Ltd
Diff Detail
Event TimelineComment 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? |