This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Stopgap fix for linux64 sparc host


sparc64-linux currently can miscompile 32-bit glibc because
of hardcoded path names.  Jakub is working on a better more
complete fix, so this stopgap is only applied to the 3.2
branch just in case he cannot finish his changes in time for
3.2.1

2002-09-29  David S. Miller  <davem@redhat.com>

	* config/sparc/linux64.h (STARTFILE_SPEC32, ENDFILE_SPEC32): Kill
	hardcoded paths.

--- config/sparc/linux64.h.~1~	Wed Sep 25 14:12:48 2002
+++ config/sparc/linux64.h	Fri Sep 27 00:36:53 2002
@@ -58,8 +58,8 @@
 
 #define STARTFILE_SPEC32 \
   "%{!shared: \
-     %{pg:/usr/lib/gcrt1.o%s} %{!pg:%{p:/usr/lib/gcrt1.o%s} %{!p:/usr/lib/crt1.o%s}}}\
-   /usr/lib/crti.o%s %{static:crtbeginT.o%s}\
+     %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}\
+   crti.o%s %{static:crtbeginT.o%s}\
    %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
 
 #define STARTFILE_SPEC64 \
@@ -97,7 +97,7 @@
 #undef  ENDFILE_SPEC
 
 #define ENDFILE_SPEC32 \
-  "%{!shared:crtend.o%s} %{shared:crtendS.o%s} /usr/lib/crtn.o%s"
+  "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
 
 #define ENDFILE_SPEC64 \
   "%{!shared:crtend.o%s} %{shared:crtendS.o%s} /usr/lib64/crtn.o%s"


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