Page MenuHomeFreeBSD

sys/conf: Support building kasan with gcc on arm64
ClosedPublic

Authored by andrew on May 22 2024, 2:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 12, 12:49 AM
Unknown Object (File)
Thu, Jun 25, 2:25 AM
Unknown Object (File)
Jun 22 2026, 5:43 PM
Unknown Object (File)
Jun 20 2026, 9:45 AM
Unknown Object (File)
Jun 18 2026, 1:20 PM
Unknown Object (File)
Jun 17 2026, 11:46 PM
Unknown Object (File)
Jun 8 2026, 8:55 AM
Unknown Object (File)
May 31 2026, 6:27 AM
Subscribers

Details

Summary
  • 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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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?

This revision is now accepted and ready to land.Jun 5 2024, 4:51 PM