[PATCH] PPC64 _dl_lookup_symbol_internal clobbers fpr2
Steven Munroe
sjmunroe@us.ibm.com
Tue Aug 26 21:38:00 GMT 2003
Jakub Jelinek writes:
> Why dl-reloc.c and rtld.c?
dl-runtime.os, dl-lookup.os, and dl-misc.os seem to be the minimum set to clean
up the dynamic relocation path so dropped dl-reloc and rtld from the
-msoft-float list.
> Maybe CFLAGS-rtld-strlen.os := -msoft-float etc.
strlen, memcpy, and memset are clean (rewritten in asm) but mempcpy, memmove,
memchr, and strnlen are not. So I added rtld-mempcpy etc to the list. This is
not required to fix this fpr clobber, but these functions should not be using
fprs anyway.
2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/powerpc/powerpc64/elf/Makefile: New file.
--
Steven Munroe
sjmunroe@us.ibm.com
Linux on PowerPC-64 Development
GLIBC for PowerPC-64 Development
-------------- next part --------------
diff -urN libc23-cvstip-20030825/sysdeps/powerpc/powerpc64/elf/Makefile libc23/sysdeps/powerpc/powerpc64/elf/Makefile
--- libc23-cvstip-20030825/sysdeps/powerpc/powerpc64/elf/Makefile Wed Dec 31 18:00:00 1969
+++ libc23/sysdeps/powerpc/powerpc64/elf/Makefile Tue Aug 26 15:26:03 2003
@@ -0,0 +1,11 @@
+# powerpc64/ELF specific definitions.
+
+# Need to prevent gcc from using fprs in code used during dynamic linking.
+
+CFLAGS-dl-runtime.os := -msoft-float
+CFLAGS-dl-lookup.os := -msoft-float
+CFLAGS-dl-misc.os := -msoft-float
+CFLAGS-rtld-mempcpy.os := -msoft-float
+CFLAGS-rtld-memmove.os := -msoft-float
+CFLAGS-rtld-memchr.os := -msoft-float
+CFLAGS-rtld-strnlen.os := -msoft-float
More information about the Libc-hacker
mailing list