Page MenuHomeFreeBSD

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

Authored by andrew on Wed, May 22, 2:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 3, 4:48 PM
Unknown Object (File)
Fri, May 24, 7:06 PM
Unknown Object (File)
Thu, May 23, 10:48 AM
Unknown Object (File)
Wed, May 22, 4:13 PM
Subscribers

Details

Reviewers
brooks
imp
jhb
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 58065
Build 54953: arc lint + arc unit

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.Wed, Jun 5, 4:51 PM