[glibc/azanella/clang] stdlib: Avoid stpcpy plt with clang

Adhemerval Zanella azanella@sourceware.org
Fri Oct 17 19:17:05 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0a840a3cc7efe0cf514df8a4d5d170b13cbcb35f

commit 0a840a3cc7efe0cf514df8a4d5d170b13cbcb35f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue May 13 10:19:49 2025 -0300

    stdlib: Avoid stpcpy plt with clang

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 b3c536e8ac..a75ab9fe63 100644
--- a/sysdeps/generic/symbol-hacks.h
+++ b/sysdeps/generic/symbol-hacks.h
@@ -30,6 +30,7 @@ asm ("strcpy = __GI_strcpy");
 asm ("strncpy = __GI_strncpy");
 asm ("strcat = __GI_strcat");
 asm ("strlen = __GI_strlen");
+asm ("stpcpy = __GI_stpcpy");
 
 /* 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