summaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-11-20 15:30:11 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-11-21 13:13:11 -0300
commit8d26bed1ebcefd5d2059fd7d7462bdf6593d77fa (patch)
treec48233a37c87ba56389fed5c6d2871a27e9318f4 /debug
parent25de0771ecac240a54f03ab55247d92457e4c310 (diff)
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>
Diffstat (limited to 'debug')
-rw-r--r--debug/vasprintf_chk.c1
-rw-r--r--debug/vfprintf_chk.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/debug/vasprintf_chk.c b/debug/vasprintf_chk.c
index 41c15689ee..f86320cadb 100644
--- a/debug/vasprintf_chk.c
+++ b/debug/vasprintf_chk.c
@@ -35,3 +35,4 @@ __vasprintf_chk (char **result_ptr, int flag, const char *format, va_list ap)
return __vasprintf_internal (result_ptr, format, ap, mode);
}
+libc_hidden_def (__vasprintf_chk)
diff --git a/debug/vfprintf_chk.c b/debug/vfprintf_chk.c
index 74b7c86add..999b6aa393 100644
--- a/debug/vfprintf_chk.c
+++ b/debug/vfprintf_chk.c
@@ -29,3 +29,4 @@ ___vfprintf_chk (FILE *fp, int flag, const char *format, va_list ap)
return __vfprintf_internal (fp, format, ap, mode);
}
ldbl_strong_alias (___vfprintf_chk, __vfprintf_chk)
+ldbl_hidden_def (___vfprintf_chk, __vfprintf_chk)