opnsense-src/lib/libc/amd64/string/Makefile.inc
Mark Johnston 06fc42c0cb 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")

(cherry picked from commit 4dedcb1bb54cbbe8043c79ad733f966b6ffc6972)
2024-01-30 13:01:58 -05:00

36 lines
598 B
Makefile

MDSRCS+= \
amd64_archlevel.c \
bcmp.S \
memchr.S \
memcmp.S \
memccpy.S \
memcpy.S \
memmove.S \
memrchr.S \
memset.S \
stpcpy.S \
stpncpy.S \
strcat.S \
strchrnul.S \
strcmp.S \
strcpy.c \
strcspn.S \
strlcat.c \
strlcpy.S \
strlen.S \
strncat.c \
strncmp.S \
strncpy.c \
strnlen.c \
strpbrk.c \
strrchr.S \
strsep.c \
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