summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rw-r--r--patches/binutils/2.17.50.0.14/100-uclibc-conf.patch149
-rw-r--r--patches/binutils/2.17.50.0.14/110-arm-eabi-conf.patch24
-rw-r--r--patches/binutils/2.17.50.0.14/300-001_ld_makefile_patch.patch24
-rw-r--r--patches/binutils/2.17.50.0.14/300-012_check_ldrunpath_length.patch21
4 files changed, 218 insertions, 0 deletions
diff --git a/patches/binutils/2.17.50.0.14/100-uclibc-conf.patch b/patches/binutils/2.17.50.0.14/100-uclibc-conf.patch
new file mode 100644
index 0000000..70e2f2d
--- /dev/null
+++ b/patches/binutils/2.17.50.0.14/100-uclibc-conf.patch
@@ -0,0 +1,149 @@
+diff -dur binutils-2.17.50.0.14.orig/bfd/configure binutils-2.17.50.0.14/bfd/configure
+--- binutils-2.17.50.0.14.orig/bfd/configure 2007-03-23 16:41:48.000000000 +0100
++++ binutils-2.17.50.0.14/bfd/configure 2007-04-10 17:35:41.000000000 +0200
+@@ -3577,7 +3577,7 @@
+ ;;
+
+ # This must be Linux ELF.
+-linux-gnu*)
++linux-gnu*|linux-uclibc*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+diff -dur binutils-2.17.50.0.14.orig/binutils/configure binutils-2.17.50.0.14/binutils/configure
+--- binutils-2.17.50.0.14.orig/binutils/configure 2007-03-16 16:48:29.000000000 +0100
++++ binutils-2.17.50.0.14/binutils/configure 2007-04-10 17:35:41.000000000 +0200
+@@ -3410,7 +3410,7 @@
+ ;;
+
+ # This must be Linux ELF.
+-linux-gnu*)
++linux-gnu*|linux-uclibc*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+diff -dur binutils-2.17.50.0.14.orig/configure binutils-2.17.50.0.14/configure
+--- binutils-2.17.50.0.14.orig/configure 2007-03-23 16:41:48.000000000 +0100
++++ binutils-2.17.50.0.14/configure 2007-04-10 17:35:41.000000000 +0200
+@@ -2195,7 +2195,7 @@
+ am33_2.0-*-linux*)
+ noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
+ ;;
+- sh-*-linux*)
++ sh*-*-linux*)
+ noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
+ ;;
+ sh*-*-pe|mips*-*-pe|*arm-wince-pe)
+@@ -2490,7 +2490,7 @@
+ romp-*-*)
+ noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
+ ;;
+- sh-*-* | sh64-*-*)
++ sh*-*-* | sh64-*-*)
+ case "${host}" in
+ i[3456789]86-*-vsta) ;; # don't add gprof back in
+ i[3456789]86-*-go32*) ;; # don't add gprof back in
+diff -dur binutils-2.17.50.0.14.orig/configure.ac binutils-2.17.50.0.14/configure.ac
+--- binutils-2.17.50.0.14.orig/configure.ac 2007-03-23 16:41:48.000000000 +0100
++++ binutils-2.17.50.0.14/configure.ac 2007-04-10 17:35:41.000000000 +0200
+@@ -484,7 +484,7 @@
+ am33_2.0-*-linux*)
+ noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
+ ;;
+- sh-*-linux*)
++ sh*-*-linux*)
+ noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
+ ;;
+ sh*-*-pe|mips*-*-pe|*arm-wince-pe)
+@@ -779,7 +779,7 @@
+ romp-*-*)
+ noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
+ ;;
+- sh-*-* | sh64-*-*)
++ sh*-*-* | sh64-*-*)
+ case "${host}" in
+ i[[3456789]]86-*-vsta) ;; # don't add gprof back in
+ i[[3456789]]86-*-go32*) ;; # don't add gprof back in
+diff -dur binutils-2.17.50.0.14.orig/gas/configure binutils-2.17.50.0.14/gas/configure
+--- binutils-2.17.50.0.14.orig/gas/configure 2007-03-16 16:48:29.000000000 +0100
++++ binutils-2.17.50.0.14/gas/configure 2007-04-10 17:35:41.000000000 +0200
+@@ -3410,7 +3410,7 @@
+ ;;
+
+ # This must be Linux ELF.
+-linux-gnu*)
++linux-gnu*|linux-uclibc*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+diff -dur binutils-2.17.50.0.14.orig/gprof/configure binutils-2.17.50.0.14/gprof/configure
+--- binutils-2.17.50.0.14.orig/gprof/configure 2007-01-03 20:49:13.000000000 +0100
++++ binutils-2.17.50.0.14/gprof/configure 2007-04-10 17:35:41.000000000 +0200
+@@ -3413,6 +3413,11 @@
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
++linux-uclibc*)
++ lt_cv_deplibs_check_method=pass_all
++ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
++ ;;
++
+ netbsd* | knetbsd*-gnu)
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+ lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
+diff -dur binutils-2.17.50.0.14.orig/ld/configure binutils-2.17.50.0.14/ld/configure
+--- binutils-2.17.50.0.14.orig/ld/configure 2007-03-16 16:48:30.000000000 +0100
++++ binutils-2.17.50.0.14/ld/configure 2007-04-10 17:35:41.000000000 +0200
+@@ -3412,7 +3412,7 @@
+ ;;
+
+ # This must be Linux ELF.
+-linux-gnu*)
++linux-gnu*|linux-uclibc*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+diff -dur binutils-2.17.50.0.14.orig/libtool.m4 binutils-2.17.50.0.14/libtool.m4
+--- binutils-2.17.50.0.14.orig/libtool.m4 2006-02-14 00:10:15.000000000 +0100
++++ binutils-2.17.50.0.14/libtool.m4 2007-04-10 17:35:41.000000000 +0200
+@@ -739,7 +739,7 @@
+ ;;
+
+ # This must be Linux ELF.
+-linux-gnu*)
++linux-gnu*|linux-uclibc*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+diff -dur binutils-2.17.50.0.14.orig/ltconfig binutils-2.17.50.0.14/ltconfig
+--- binutils-2.17.50.0.14.orig/ltconfig 2006-07-15 20:23:48.000000000 +0200
++++ binutils-2.17.50.0.14/ltconfig 2007-04-10 17:35:41.000000000 +0200
+@@ -602,6 +602,7 @@
+
+ # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
+ case $host_os in
++linux-uclibc*) ;;
+ linux-gnu*) ;;
+ linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
+ esac
+@@ -1247,7 +1248,7 @@
+ ;;
+
+ # This must be Linux ELF.
+-linux-gnu*)
++linux-gnu*|linux-uclibc*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+diff -dur binutils-2.17.50.0.14.orig/opcodes/configure binutils-2.17.50.0.14/opcodes/configure
+--- binutils-2.17.50.0.14.orig/opcodes/configure 2007-03-16 16:48:30.000000000 +0100
++++ binutils-2.17.50.0.14/opcodes/configure 2007-04-10 17:35:41.000000000 +0200
+@@ -3578,7 +3578,7 @@
+ ;;
+
+ # This must be Linux ELF.
+-linux-gnu*)
++linux-gnu*|linux-uclibc*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
diff --git a/patches/binutils/2.17.50.0.14/110-arm-eabi-conf.patch b/patches/binutils/2.17.50.0.14/110-arm-eabi-conf.patch
new file mode 100644
index 0000000..14621d8
--- /dev/null
+++ b/patches/binutils/2.17.50.0.14/110-arm-eabi-conf.patch
@@ -0,0 +1,24 @@
+diff -dur binutils-2.17.50.0.14.orig/configure binutils-2.17.50.0.14/configure
+--- binutils-2.17.50.0.14.orig/configure 2007-04-10 17:38:23.000000000 +0200
++++ binutils-2.17.50.0.14/configure 2007-04-10 17:38:43.000000000 +0200
+@@ -2224,7 +2224,7 @@
+ arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
+ noconfigdirs="$noconfigdirs target-libffi target-qthreads"
+ ;;
+- arm*-*-linux-gnueabi)
++ arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi)
+ noconfigdirs="$noconfigdirs target-libffi target-qthreads"
+ noconfigdirs="$noconfigdirs target-libjava target-libobjc"
+ ;;
+diff -dur binutils-2.17.50.0.14.orig/configure.ac binutils-2.17.50.0.14/configure.ac
+--- binutils-2.17.50.0.14.orig/configure.ac 2007-04-10 17:38:23.000000000 +0200
++++ binutils-2.17.50.0.14/configure.ac 2007-04-10 17:38:43.000000000 +0200
+@@ -513,7 +513,7 @@
+ arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
+ noconfigdirs="$noconfigdirs target-libffi target-qthreads"
+ ;;
+- arm*-*-linux-gnueabi)
++ arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi)
+ noconfigdirs="$noconfigdirs target-libffi target-qthreads"
+ noconfigdirs="$noconfigdirs target-libjava target-libobjc"
+ ;;
diff --git a/patches/binutils/2.17.50.0.14/300-001_ld_makefile_patch.patch b/patches/binutils/2.17.50.0.14/300-001_ld_makefile_patch.patch
new file mode 100644
index 0000000..b919296
--- /dev/null
+++ b/patches/binutils/2.17.50.0.14/300-001_ld_makefile_patch.patch
@@ -0,0 +1,24 @@
+diff -dur binutils-2.17.50.0.14.orig/ld/Makefile.am binutils-2.17.50.0.14/ld/Makefile.am
+--- binutils-2.17.50.0.14.orig/ld/Makefile.am 2007-03-16 16:48:30.000000000 +0100
++++ binutils-2.17.50.0.14/ld/Makefile.am 2007-04-10 17:40:16.000000000 +0200
+@@ -17,7 +17,7 @@
+ # We put the scripts in the directory $(scriptdir)/ldscripts.
+ # We can't put the scripts in $(datadir) because the SEARCH_DIR
+ # directives need to be different for native and cross linkers.
+-scriptdir = $(tooldir)/lib
++scriptdir = $(libdir)
+
+ EMUL = @EMUL@
+ EMULATION_OFILES = @EMULATION_OFILES@
+diff -dur binutils-2.17.50.0.14.orig/ld/Makefile.in binutils-2.17.50.0.14/ld/Makefile.in
+--- binutils-2.17.50.0.14.orig/ld/Makefile.in 2007-03-16 16:48:30.000000000 +0100
++++ binutils-2.17.50.0.14/ld/Makefile.in 2007-04-10 17:40:16.000000000 +0200
+@@ -274,7 +274,7 @@
+ # We put the scripts in the directory $(scriptdir)/ldscripts.
+ # We can't put the scripts in $(datadir) because the SEARCH_DIR
+ # directives need to be different for native and cross linkers.
+-scriptdir = $(tooldir)/lib
++scriptdir = $(libdir)
+ BASEDIR = $(srcdir)/..
+ BFDDIR = $(BASEDIR)/bfd
+ INCDIR = $(BASEDIR)/include
diff --git a/patches/binutils/2.17.50.0.14/300-012_check_ldrunpath_length.patch b/patches/binutils/2.17.50.0.14/300-012_check_ldrunpath_length.patch
new file mode 100644
index 0000000..3af193e
--- /dev/null
+++ b/patches/binutils/2.17.50.0.14/300-012_check_ldrunpath_length.patch
@@ -0,0 +1,21 @@
+diff -dur binutils-2.17.50.0.14.orig/ld/emultempl/elf32.em binutils-2.17.50.0.14/ld/emultempl/elf32.em
+--- binutils-2.17.50.0.14.orig/ld/emultempl/elf32.em 2007-03-23 16:42:51.000000000 +0100
++++ binutils-2.17.50.0.14/ld/emultempl/elf32.em 2007-04-10 17:41:24.000000000 +0200
+@@ -1007,6 +1007,8 @@
+ && command_line.rpath == NULL)
+ {
+ lib_path = (const char *) getenv ("LD_RUN_PATH");
++ if ((lib_path) && (strlen (lib_path) == 0))
++ lib_path = NULL;
+ if (gld${EMULATION_NAME}_search_needed (lib_path, &n,
+ force))
+ break;
+@@ -1191,6 +1193,8 @@
+ rpath = command_line.rpath;
+ if (rpath == NULL)
+ rpath = (const char *) getenv ("LD_RUN_PATH");
++ if ((rpath) && (strlen (rpath) == 0))
++ rpath = NULL;
+ if (! (bfd_elf_size_dynamic_sections
+ (output_bfd, command_line.soname, rpath,
+ command_line.filter_shlib,