loongarch: Provide stpcpy in stpcpy-aligned.S for rtld [BZ #32512]

When stpcpy-aligned.S is used in rtld, provide stpcpy as a weak alias of
__stpcpy.  This fixes BZ #32512.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
H.J. Lu 2025-01-04 05:43:21 +08:00
parent f86b4cf875
commit 8e524ff79b
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@
# define STPCPY __stpcpy_aligned
#else
# define STPCPY __stpcpy
weak_alias (__stpcpy, stpcpy)
#endif
#define USE_AS_STPCPY