HomeFreeBSD

sys/conf: Support building kasan with gcc on arm64

Description

sys/conf: Support building kasan with gcc on arm64

  • Remove -mllvm flags that don't exist in gcc
  • Set the shadow offset with -fasan-shadow-offset
  • Remove this when kasan is disabled as it's an error to use this when not building for kasan under gcc

This allows the arm64 GENERIC-KASAN kernel to build with gcc13.

Reviewed by: brooks
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D45300

Details

Provenance
andrewAuthored on Sep 27 2024, 3:23 PM
Reviewer
brooks
Differential Revision
D45300: sys/conf: Support building kasan with gcc on arm64
Parents
rG9b86b272bfdb: tests: Move netpfil/pf/divapp to netpfil/common/
Branches
Unknown
Tags
Unknown