[PATCH 1/2] Redirect mempcpy and stpcpy only in libc.a
Andreas Schwab
schwab@linux-m68k.org
Fri Jan 3 14:23:47 GMT 2025
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
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
More information about the Libc-alpha
mailing list