From: H.J. Lu Date: Tue, 21 May 2024 00:32:14 +0000 (-0700) Subject: i386: Don't define stpncpy alias when used in IFUNC [BZ #31768] X-Git-Tag: glibc-2.40~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8428278b5f5cee21811339017ca09cccc8c751f7;p=thirdparty%2Fglibc.git i386: Don't define stpncpy alias when used in IFUNC [BZ #31768] Fix BZ #31768 by not defining stpncpy alias when used in IFUNC. Signed-off-by: H.J. Lu Reviewed-by: Sunil K Pandey --- diff --git a/sysdeps/i386/stpncpy.S b/sysdeps/i386/stpncpy.S index 895fee8a1e..74130bc71d 100644 --- a/sysdeps/i386/stpncpy.S +++ b/sysdeps/i386/stpncpy.S @@ -139,4 +139,6 @@ L(9): popl %esi /* restore saved register content */ END (__stpncpy) libc_hidden_def (__stpncpy) +#ifndef __stpncpy weak_alias (__stpncpy, stpncpy) +#endif