From 8428278b5f5cee21811339017ca09cccc8c751f7 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 20 May 2024 17:32:14 -0700 Subject: [PATCH] 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 --- sysdeps/i386/stpncpy.S | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.43.5