[PATCH 1/2] Redirect mempcpy and stpcpy only in libc.a
H.J. Lu
hjl.tools@gmail.com
Fri Jan 3 21:55:36 GMT 2025
On Fri, Jan 3, 2025 at 10:23 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> This breaks loongarch64.
>
> gcc -nostdlib -nostartfiles -shared -o /home/abuild/rpmbuild/BUILD/glibc-2.40.9000.676.ge9eea0598/cc-base/elf/ld.so.new \
> -Wl,-z,relro -Wl,-z,defs -Wl,-z,now \
> -Wl,-z,pack-relative-relocs \
> /home/abuild/rpmbuild/BUILD/glibc-2.40.9000.676.ge9eea0598/cc-base/elf/librtld.os -Wl,--version-script=/home/abuild/rpmbuild/BUILD/glibc-2.40.9000.676.ge9eea0598/cc-base/ld.map \
> -Wl,-soname=ld-linux-loongarch-lp64d.so.1
> /usr/lib64/gcc/loongarch64-suse-linux/14/../../../../loongarch64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/glibc-2.40.9000.676.ge9eea0598/cc-base/elf/librtld.os: in function `open_path':
> /home/abuild/rpmbuild/BUILD/glibc-2.40.9000.676.ge9eea0598/elf/dl-load.c:1788:(.text+0x487c): undefined reference to `stpcpy'
> /usr/lib64/gcc/loongarch64-suse-linux/14/../../../../loongarch64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/glibc-2.40.9000.676.ge9eea0598/cc-base/elf/librtld.os: in function `_dl_show_scope':
> /home/abuild/rpmbuild/BUILD/glibc-2.40.9000.676.ge9eea0598/elf/dl-open.c:933:(.text+0xbe40): undefined reference to `stpcpy'
> /usr/lib64/gcc/loongarch64-suse-linux/14/../../../../loongarch64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/glibc-2.40.9000.676.ge9eea0598/cc-base/elf/librtld.os: in function `_dl_make_tlsdesc_dynamic':
> /home/abuild/rpmbuild/BUILD/glibc-2.40.9000.676.ge9eea0598/elf/./tlsdeschtab.h:119:(.text+0x159ec): undefined reference to `stpcpy'
> /usr/lib64/gcc/loongarch64-suse-linux/14/../../../../loongarch64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/glibc-2.40.9000.676.ge9eea0598/elf/./tlsdeschtab.h:121:(.text+0x15a00): undefined reference to `stpcpy'
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:1495: /home/abuild/rpmbuild/BUILD/glibc-2.40.9000.676.ge9eea0598/cc-base/elf/ld.so] Error 1
> make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/glibc-2.40.9000.676.ge9eea0598/elf'
> make[1]: *** [Makefile:484: elf/subdir_lib] Error 2
> make: *** [Makefile:21: all] Error 2
>
Patches are submitted:
https://patchwork.sourceware.org/project/glibc/list/?series=42533
--
H.J.
More information about the Libc-alpha
mailing list