[PATCH 1/2] loongarch: Provide stpcpy in stpcpy-aligned.S for rtld

H.J. Lu hjl.tools@gmail.com
Fri Jan 3 22:12:41 GMT 2025


On Sat, Jan 4, 2025 at 5:53 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> When stpcpy-aligned.S is used in rtld, provide stpcpy as a weak alias of
> __stpcpy.
>
> Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
> ---
>  sysdeps/loongarch/lp64/multiarch/stpcpy-aligned.S | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/sysdeps/loongarch/lp64/multiarch/stpcpy-aligned.S b/sysdeps/loongarch/lp64/multiarch/stpcpy-aligned.S
> index bf4d0da76a..c76147526e 100644
> --- a/sysdeps/loongarch/lp64/multiarch/stpcpy-aligned.S
> +++ b/sysdeps/loongarch/lp64/multiarch/stpcpy-aligned.S
> @@ -20,6 +20,7 @@
>  # define STPCPY __stpcpy_aligned
>  #else
>  # define STPCPY __stpcpy
> +weak_alias (__stpcpy, stpcpy)
>  #endif
>
>  #define USE_AS_STPCPY
> --
> 2.47.1
>

This fixes BZ #32512.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0001-loongarch-Provide-stpcpy-in-stpcpy-aligned.S-for-.patch
Type: text/x-patch
Size: 905 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250104/c4da1a71/attachment.bin>


More information about the Libc-alpha mailing list