mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
libc/amd64: Disable ASAN for amd64_archlevel.c
The code in this file runs before the sanitizer can initialize its
shadow map.
Fixes: ad2fac552c
("lib/libc/amd64: add archlevel-based simd dispatch framework")
This commit is contained in:
parent
3883c6fbf2
commit
4dedcb1bb5
|
@ -28,3 +28,9 @@ MDSRCS+= \
|
|||
strspn.S \
|
||||
timingsafe_bcmp.S \
|
||||
timingsafe_memcmp.S
|
||||
|
||||
.if ${MK_ASAN} != "no"
|
||||
# Disable ASAN for amd64_archlevel.c since its code is executed before the
|
||||
# sanitizer runtime can initialize itself.
|
||||
CFLAGS.amd64_archlevel.c+= -fno-sanitize=address
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue