[glibc/azanella/clang] stdlib: Avoid strlen plt with clang-20
Adhemerval Zanella
azanella@sourceware.org
Thu Apr 10 18:17:11 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6bc4b1342f154db51a8a22cf0c60ff5fca8b488f
commit 6bc4b1342f154db51a8a22cf0c60ff5fca8b488f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Apr 7 17:32:08 2025 -0300
stdlib: Avoid strlen plt with clang-20
Diff:
---
sysdeps/generic/symbol-hacks.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/sysdeps/generic/symbol-hacks.h b/sysdeps/generic/symbol-hacks.h
index e4b6816240..b3c536e8ac 100644
--- a/sysdeps/generic/symbol-hacks.h
+++ b/sysdeps/generic/symbol-hacks.h
@@ -29,6 +29,7 @@ asm ("__strcpy_chk = __GI___strcpy_chk");
asm ("strcpy = __GI_strcpy");
asm ("strncpy = __GI_strncpy");
asm ("strcat = __GI_strcat");
+asm ("strlen = __GI_strlen");
/* clang might generate an abort call when cleanup functions (set by
__attribute__ ((cleanup)) calls functions not marked as nothrow.
More information about the Glibc-cvs
mailing list