Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Feb 2024 16:36:28 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: e04a75a4ec82 - main - arm64: Fix the unwind.c build when sanitizers are enabled
Message-ID:  <202402081636.418GaSgM020537@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=e04a75a4ec8240050e2782202f45bdd88d0a7cdf

commit e04a75a4ec8240050e2782202f45bdd88d0a7cdf
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-02-08 15:39:40 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-02-08 16:22:58 +0000

    arm64: Fix the unwind.c build when sanitizers are enabled
    
    The presence of -fno-sanitize-memory-param-retval without an
    accompanying -fsanitize=kernel-memory triggers a compiler error.
    
    MFC after:      2 weeks
    Sponsored by:   Klara, Inc.
    Sponsored by:   Juniper Networks, Inc.
---
 sys/conf/files.arm64 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/conf/files.arm64 b/sys/conf/files.arm64
index 0eed3db41b16..dcdd429c14c4 100644
--- a/sys/conf/files.arm64
+++ b/sys/conf/files.arm64
@@ -81,7 +81,7 @@ arm64/arm64/uio_machdep.c			standard
 arm64/arm64/uma_machdep.c			standard
 arm64/arm64/undefined.c				standard
 arm64/arm64/unwind.c				optional ddb | kdtrace_hooks | stack \
-	compile-with "${NORMAL_C:N-fsanitize*}"
+	compile-with "${NORMAL_C:N-fsanitize*:N-fno-sanitize*}"
 arm64/arm64/vfp.c				standard
 arm64/arm64/vm_machdep.c			standard
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402081636.418GaSgM020537>