plfs + powerpc

Edward Pinski pinskie at physics.uc.edu
Thu Apr 10 13:26:23 PDT 2003


Okay dokey, after doing plfs(well not finished yet, at the second glibc now),
there are a few issues with the patches, and the SPECFILE sed command.
For PPC, of course it's powerpc-unknown-linux-gnu by default, but you
knew this, and it doesn't use ld-linux.so.2, it uses ld.so.1.  So you
may want to mention this around there in the hint.  Also the spec.patch
for gcc, as seen on the patch, only edits gcc/config/i386/linux.h
attached is a patch that edits gcc/config/i386/linux.h and
gcc/config/rs6000/sysv4.h which will do what is needed.  Other than that
I haven't had any other issues, besides gcc's make check failing, and
not continuing with -k.

Edward Pinski
-------------- next part --------------
diff -uNr gcc-3.2.2.orig/gcc/config/i386/linux.h gcc-3.2.2/gcc/config/i386/linux.h
--- gcc-3.2.2.orig/gcc/config/i386/linux.h	Mon Apr 15 16:27:27 2002
+++ gcc-3.2.2/gcc/config/i386/linux.h	Thu Apr 10 16:24:15 2003
@@ -138,7 +138,7 @@
     %{!ibcs: \
       %{!static: \
 	%{rdynamic:-export-dynamic} \
-	%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
+	%{!dynamic-linker:-dynamic-linker /stage1/lib/ld-linux.so.2}} \
 	%{static:-static}}}"
 #endif
 
diff -uNr gcc-3.2.2.orig/gcc/config/rs6000/sysv4.h gcc-3.2.2/gcc/config/rs6000/sysv4.h
--- gcc-3.2.2.orig/gcc/config/rs6000/sysv4.h	Thu Jan 30 09:03:42 2003
+++ gcc-3.2.2/gcc/config/rs6000/sysv4.h	Thu Apr 10 16:23:12 2003
@@ -1248,7 +1248,7 @@
 
 #define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
   %{rdynamic:-export-dynamic} \
-  %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
+  %{!dynamic-linker:-dynamic-linker /stage1/lib/ld.so.1}}}"
 
 #if !defined(USE_GNULIBC_1) && defined(HAVE_LD_EH_FRAME_HDR)
 # define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
@@ -1288,7 +1288,7 @@
 
 #define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \
   %{rdynamic:-export-dynamic} \
-  %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
+  %{!dynamic-linker:-dynamic-linker /stage1/lib/ld.so.1}}}"
 
 #define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__	\
 %{!undef:					                \


More information about the lfs-dev mailing list