1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-11-26 00:03:11 +03:00

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

@@ -1 +1,8 @@
#include <libio/bits/stdio2-decl.h>
#ifndef _ISOMAC
libc_hidden_proto (__fgets_unlocked_chk)
libc_hidden_ldbl_proto (vfprintf)
libc_hidden_ldbl_proto (__vasprintf_chk)
libc_hidden_ldbl_proto (__vfprintf_chk)
#endif