mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04: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
1 changed files with 6 additions and 0 deletions
|
|
@ -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