This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

[PATCH] to support SH3 big-endian chain using sanitized headers


  to summarize, the two file patches necessary to build an SH3 chain
consisting of

	gcc-4.1-20050501
	glibc-20050502
	binutils-2.15.96

(i'm hoping this is the right diff format.)  additional patches coming
shortly to handle newer binutils snapshots.




diff -Nru patches.orig/glibc-20050502/make-install-lib-all.patch patches/glibc-20050502/make-install-lib-all.patch
--- patches.orig/glibc-20050502/make-install-lib-all.patch	1969-12-31 19:00:00.000000000 -0500
+++ patches/glibc-20050502/make-install-lib-all.patch	2005-05-03 06:32:15.000000000 -0400
@@ -0,0 +1,24 @@
+From http://svn.exactcode.de/t2/trunk/package/base/glibc32/make-install-lib-all.patch
+Rule to install all needed libraries, not just the ones installed by install-lib,
+yet not install programs.
+Needed because we can't use the main install target, as we can't build programs before
+we have the final gcc installed; linking fails because libeh.a is not present,
+and glibc insists on linking programs with that library.
+
+diff -Naur glibc-2.3.4.orig/Makerules glibc-2.3.4/Makerules
+--- glibc-2.3.4.orig/Makerules	2004-12-15 20:52:39.000000000 +0200
++++ glibc-2.3.4/Makerules	2005-02-19 15:16:31.415125176 +0200
+@@ -844,6 +844,13 @@
+ installed-libcs := $(foreach o,$(filter-out .os,$(object-suffixes-for-libc)),\
+ 			     $(inst_libdir)/$(patsubst %,$(libtype$o),\
+ 						     $(libprefix)$(libc-name)))
++
++install-lib-all: $(inst_slibdir)/libc.so$(libc.so-version) \
++		$(inst_slibdir)/libc-$(version).so \
++		$(inst_libdir)/libc.so \
++		$(inst_libdir)/libc.a \
++		install-lib
++
+ install: $(installed-libcs)
+ $(installed-libcs): $(inst_libdir)/lib$(libprefix)%: lib $(+force)
+ 	$(make-target-directory)
diff -Nru patches.orig/linux-libc-headers-2.6.11.2/no-include-asm-ubc.patch patches/linux-libc-headers-2.6.11.2/no-include-asm-ubc.patch
--- patches.orig/linux-libc-headers-2.6.11.2/no-include-asm-ubc.patch	1969-12-31 19:00:00.000000000 -0500
+++ patches/linux-libc-headers-2.6.11.2/no-include-asm-ubc.patch	2005-05-03 06:09:25.000000000 -0400
@@ -0,0 +1,11 @@
+--- linux-libc-headers-2.6.11.2/include/asm-sh/ptrace.h.orig	2005-05-02 16:48:15.000000000 -0400
++++ linux-libc-headers-2.6.11.2/include/asm-sh/ptrace.h	2005-05-02 16:48:28.000000000 -0400
+@@ -1,7 +1,7 @@
+ #ifndef __ASM_SH_PTRACE_H
+ #define __ASM_SH_PTRACE_H
+
+-#include <asm/ubc.h>
++/* #include <asm/ubc.h> */
+
+ /*
+  * Copyright (C) 1999, 2000  Niibe Yutaka

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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