Enable --enable-fortify-source with clang

clang generates internal calls for some _chk symbol, so add internal
aliases for them, and stub some with rtld-stubbed-symbols to avoid
ld.so linker issues.

Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
Adhemerval Zanella
2025-11-20 15:30:11 -03:00
parent 25de0771ec
commit 8d26bed1eb
20 changed files with 89 additions and 12 deletions

View File

@@ -121,6 +121,7 @@ routines := \
# Exclude fortified routines from being built with _FORTIFY_SOURCE
routines_no_fortify += \
bzero \
explicit_bzero \
memcpy \
memmove \