This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PPC64 _dl_lookup_symbol_internal clobbers fpr2


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
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]