Add patches for binutils 2.17.50.0.14.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Apr 10 16:04:29 2007 +0000 (2007-04-10)
changeset 2649f5f2007ed8
parent 25 b1d9951b9933
child 27 14938fdeaaa2
Add patches for binutils 2.17.50.0.14.
Vampirised fron buildroot.
patches/binutils/2.17.50.0.14/100-uclibc-conf.patch
patches/binutils/2.17.50.0.14/110-arm-eabi-conf.patch
patches/binutils/2.17.50.0.14/300-001_ld_makefile_patch.patch
patches/binutils/2.17.50.0.14/300-012_check_ldrunpath_length.patch
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/binutils/2.17.50.0.14/100-uclibc-conf.patch	Tue Apr 10 16:04:29 2007 +0000
     1.3 @@ -0,0 +1,149 @@
     1.4 +diff -dur binutils-2.17.50.0.14.orig/bfd/configure binutils-2.17.50.0.14/bfd/configure
     1.5 +--- binutils-2.17.50.0.14.orig/bfd/configure	2007-03-23 16:41:48.000000000 +0100
     1.6 ++++ binutils-2.17.50.0.14/bfd/configure	2007-04-10 17:35:41.000000000 +0200
     1.7 +@@ -3577,7 +3577,7 @@
     1.8 +   ;;
     1.9 + 
    1.10 + # This must be Linux ELF.
    1.11 +-linux-gnu*)
    1.12 ++linux-gnu*|linux-uclibc*)
    1.13 +   lt_cv_deplibs_check_method=pass_all
    1.14 +   ;;
    1.15 + 
    1.16 +diff -dur binutils-2.17.50.0.14.orig/binutils/configure binutils-2.17.50.0.14/binutils/configure
    1.17 +--- binutils-2.17.50.0.14.orig/binutils/configure	2007-03-16 16:48:29.000000000 +0100
    1.18 ++++ binutils-2.17.50.0.14/binutils/configure	2007-04-10 17:35:41.000000000 +0200
    1.19 +@@ -3410,7 +3410,7 @@
    1.20 +   ;;
    1.21 + 
    1.22 + # This must be Linux ELF.
    1.23 +-linux-gnu*)
    1.24 ++linux-gnu*|linux-uclibc*)
    1.25 +   lt_cv_deplibs_check_method=pass_all
    1.26 +   ;;
    1.27 + 
    1.28 +diff -dur binutils-2.17.50.0.14.orig/configure binutils-2.17.50.0.14/configure
    1.29 +--- binutils-2.17.50.0.14.orig/configure	2007-03-23 16:41:48.000000000 +0100
    1.30 ++++ binutils-2.17.50.0.14/configure	2007-04-10 17:35:41.000000000 +0200
    1.31 +@@ -2195,7 +2195,7 @@
    1.32 +   am33_2.0-*-linux*)
    1.33 +     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    1.34 +     ;;
    1.35 +-  sh-*-linux*)
    1.36 ++  sh*-*-linux*)
    1.37 +     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    1.38 +     ;;
    1.39 +   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
    1.40 +@@ -2490,7 +2490,7 @@
    1.41 +   romp-*-*)
    1.42 +     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
    1.43 +     ;;
    1.44 +-  sh-*-* | sh64-*-*)
    1.45 ++  sh*-*-* | sh64-*-*)
    1.46 +     case "${host}" in
    1.47 +       i[3456789]86-*-vsta) ;; # don't add gprof back in
    1.48 +       i[3456789]86-*-go32*) ;; # don't add gprof back in
    1.49 +diff -dur binutils-2.17.50.0.14.orig/configure.ac binutils-2.17.50.0.14/configure.ac
    1.50 +--- binutils-2.17.50.0.14.orig/configure.ac	2007-03-23 16:41:48.000000000 +0100
    1.51 ++++ binutils-2.17.50.0.14/configure.ac	2007-04-10 17:35:41.000000000 +0200
    1.52 +@@ -484,7 +484,7 @@
    1.53 +   am33_2.0-*-linux*)
    1.54 +     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    1.55 +     ;;
    1.56 +-  sh-*-linux*)
    1.57 ++  sh*-*-linux*)
    1.58 +     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    1.59 +     ;;    
    1.60 +   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
    1.61 +@@ -779,7 +779,7 @@
    1.62 +   romp-*-*)
    1.63 +     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
    1.64 +     ;;
    1.65 +-  sh-*-* | sh64-*-*)
    1.66 ++  sh*-*-* | sh64-*-*)
    1.67 +     case "${host}" in
    1.68 +       i[[3456789]]86-*-vsta) ;; # don't add gprof back in
    1.69 +       i[[3456789]]86-*-go32*) ;; # don't add gprof back in
    1.70 +diff -dur binutils-2.17.50.0.14.orig/gas/configure binutils-2.17.50.0.14/gas/configure
    1.71 +--- binutils-2.17.50.0.14.orig/gas/configure	2007-03-16 16:48:29.000000000 +0100
    1.72 ++++ binutils-2.17.50.0.14/gas/configure	2007-04-10 17:35:41.000000000 +0200
    1.73 +@@ -3410,7 +3410,7 @@
    1.74 +   ;;
    1.75 + 
    1.76 + # This must be Linux ELF.
    1.77 +-linux-gnu*)
    1.78 ++linux-gnu*|linux-uclibc*)
    1.79 +   lt_cv_deplibs_check_method=pass_all
    1.80 +   ;;
    1.81 + 
    1.82 +diff -dur binutils-2.17.50.0.14.orig/gprof/configure binutils-2.17.50.0.14/gprof/configure
    1.83 +--- binutils-2.17.50.0.14.orig/gprof/configure	2007-01-03 20:49:13.000000000 +0100
    1.84 ++++ binutils-2.17.50.0.14/gprof/configure	2007-04-10 17:35:41.000000000 +0200
    1.85 +@@ -3413,6 +3413,11 @@
    1.86 +   lt_cv_deplibs_check_method=pass_all
    1.87 +   ;;
    1.88 + 
    1.89 ++linux-uclibc*)
    1.90 ++  lt_cv_deplibs_check_method=pass_all
    1.91 ++  lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
    1.92 ++  ;;
    1.93 ++
    1.94 + netbsd* | knetbsd*-gnu)
    1.95 +   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    1.96 +     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
    1.97 +diff -dur binutils-2.17.50.0.14.orig/ld/configure binutils-2.17.50.0.14/ld/configure
    1.98 +--- binutils-2.17.50.0.14.orig/ld/configure	2007-03-16 16:48:30.000000000 +0100
    1.99 ++++ binutils-2.17.50.0.14/ld/configure	2007-04-10 17:35:41.000000000 +0200
   1.100 +@@ -3412,7 +3412,7 @@
   1.101 +   ;;
   1.102 + 
   1.103 + # This must be Linux ELF.
   1.104 +-linux-gnu*)
   1.105 ++linux-gnu*|linux-uclibc*)
   1.106 +   lt_cv_deplibs_check_method=pass_all
   1.107 +   ;;
   1.108 + 
   1.109 +diff -dur binutils-2.17.50.0.14.orig/libtool.m4 binutils-2.17.50.0.14/libtool.m4
   1.110 +--- binutils-2.17.50.0.14.orig/libtool.m4	2006-02-14 00:10:15.000000000 +0100
   1.111 ++++ binutils-2.17.50.0.14/libtool.m4	2007-04-10 17:35:41.000000000 +0200
   1.112 +@@ -739,7 +739,7 @@
   1.113 +   ;;
   1.114 + 
   1.115 + # This must be Linux ELF.
   1.116 +-linux-gnu*)
   1.117 ++linux-gnu*|linux-uclibc*)
   1.118 +   lt_cv_deplibs_check_method=pass_all
   1.119 +   ;;
   1.120 + 
   1.121 +diff -dur binutils-2.17.50.0.14.orig/ltconfig binutils-2.17.50.0.14/ltconfig
   1.122 +--- binutils-2.17.50.0.14.orig/ltconfig	2006-07-15 20:23:48.000000000 +0200
   1.123 ++++ binutils-2.17.50.0.14/ltconfig	2007-04-10 17:35:41.000000000 +0200
   1.124 +@@ -602,6 +602,7 @@
   1.125 + 
   1.126 + # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
   1.127 + case $host_os in
   1.128 ++linux-uclibc*) ;;
   1.129 + linux-gnu*) ;;
   1.130 + linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
   1.131 + esac
   1.132 +@@ -1247,7 +1248,7 @@
   1.133 +   ;;
   1.134 + 
   1.135 + # This must be Linux ELF.
   1.136 +-linux-gnu*)
   1.137 ++linux-gnu*|linux-uclibc*)
   1.138 +   version_type=linux
   1.139 +   need_lib_prefix=no
   1.140 +   need_version=no
   1.141 +diff -dur binutils-2.17.50.0.14.orig/opcodes/configure binutils-2.17.50.0.14/opcodes/configure
   1.142 +--- binutils-2.17.50.0.14.orig/opcodes/configure	2007-03-16 16:48:30.000000000 +0100
   1.143 ++++ binutils-2.17.50.0.14/opcodes/configure	2007-04-10 17:35:41.000000000 +0200
   1.144 +@@ -3578,7 +3578,7 @@
   1.145 +   ;;
   1.146 + 
   1.147 + # This must be Linux ELF.
   1.148 +-linux-gnu*)
   1.149 ++linux-gnu*|linux-uclibc*)
   1.150 +   lt_cv_deplibs_check_method=pass_all
   1.151 +   ;;
   1.152 + 
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/patches/binutils/2.17.50.0.14/110-arm-eabi-conf.patch	Tue Apr 10 16:04:29 2007 +0000
     2.3 @@ -0,0 +1,24 @@
     2.4 +diff -dur binutils-2.17.50.0.14.orig/configure binutils-2.17.50.0.14/configure
     2.5 +--- binutils-2.17.50.0.14.orig/configure	2007-04-10 17:38:23.000000000 +0200
     2.6 ++++ binutils-2.17.50.0.14/configure	2007-04-10 17:38:43.000000000 +0200
     2.7 +@@ -2224,7 +2224,7 @@
     2.8 +   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
     2.9 +     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
    2.10 +     ;;
    2.11 +-  arm*-*-linux-gnueabi)
    2.12 ++  arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi)
    2.13 +     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
    2.14 +     noconfigdirs="$noconfigdirs target-libjava target-libobjc"
    2.15 +     ;;
    2.16 +diff -dur binutils-2.17.50.0.14.orig/configure.ac binutils-2.17.50.0.14/configure.ac
    2.17 +--- binutils-2.17.50.0.14.orig/configure.ac	2007-04-10 17:38:23.000000000 +0200
    2.18 ++++ binutils-2.17.50.0.14/configure.ac	2007-04-10 17:38:43.000000000 +0200
    2.19 +@@ -513,7 +513,7 @@
    2.20 +   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
    2.21 +     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
    2.22 +     ;;
    2.23 +-  arm*-*-linux-gnueabi)
    2.24 ++  arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi)
    2.25 +     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
    2.26 +     noconfigdirs="$noconfigdirs target-libjava target-libobjc"
    2.27 +     ;;
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/patches/binutils/2.17.50.0.14/300-001_ld_makefile_patch.patch	Tue Apr 10 16:04:29 2007 +0000
     3.3 @@ -0,0 +1,24 @@
     3.4 +diff -dur binutils-2.17.50.0.14.orig/ld/Makefile.am binutils-2.17.50.0.14/ld/Makefile.am
     3.5 +--- binutils-2.17.50.0.14.orig/ld/Makefile.am	2007-03-16 16:48:30.000000000 +0100
     3.6 ++++ binutils-2.17.50.0.14/ld/Makefile.am	2007-04-10 17:40:16.000000000 +0200
     3.7 +@@ -17,7 +17,7 @@
     3.8 + # We put the scripts in the directory $(scriptdir)/ldscripts.
     3.9 + # We can't put the scripts in $(datadir) because the SEARCH_DIR
    3.10 + # directives need to be different for native and cross linkers.
    3.11 +-scriptdir = $(tooldir)/lib
    3.12 ++scriptdir = $(libdir)
    3.13 + 
    3.14 + EMUL = @EMUL@
    3.15 + EMULATION_OFILES = @EMULATION_OFILES@
    3.16 +diff -dur binutils-2.17.50.0.14.orig/ld/Makefile.in binutils-2.17.50.0.14/ld/Makefile.in
    3.17 +--- binutils-2.17.50.0.14.orig/ld/Makefile.in	2007-03-16 16:48:30.000000000 +0100
    3.18 ++++ binutils-2.17.50.0.14/ld/Makefile.in	2007-04-10 17:40:16.000000000 +0200
    3.19 +@@ -274,7 +274,7 @@
    3.20 + # We put the scripts in the directory $(scriptdir)/ldscripts.
    3.21 + # We can't put the scripts in $(datadir) because the SEARCH_DIR
    3.22 + # directives need to be different for native and cross linkers.
    3.23 +-scriptdir = $(tooldir)/lib
    3.24 ++scriptdir = $(libdir)
    3.25 + BASEDIR = $(srcdir)/..
    3.26 + BFDDIR = $(BASEDIR)/bfd
    3.27 + INCDIR = $(BASEDIR)/include
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/patches/binutils/2.17.50.0.14/300-012_check_ldrunpath_length.patch	Tue Apr 10 16:04:29 2007 +0000
     4.3 @@ -0,0 +1,21 @@
     4.4 +diff -dur binutils-2.17.50.0.14.orig/ld/emultempl/elf32.em binutils-2.17.50.0.14/ld/emultempl/elf32.em
     4.5 +--- binutils-2.17.50.0.14.orig/ld/emultempl/elf32.em	2007-03-23 16:42:51.000000000 +0100
     4.6 ++++ binutils-2.17.50.0.14/ld/emultempl/elf32.em	2007-04-10 17:41:24.000000000 +0200
     4.7 +@@ -1007,6 +1007,8 @@
     4.8 + 	      && command_line.rpath == NULL)
     4.9 + 	    {
    4.10 + 	      lib_path = (const char *) getenv ("LD_RUN_PATH");
    4.11 ++	      if ((lib_path) && (strlen (lib_path) == 0))
    4.12 ++		  lib_path = NULL;
    4.13 + 	      if (gld${EMULATION_NAME}_search_needed (lib_path, &n,
    4.14 + 						      force))
    4.15 + 		break;
    4.16 +@@ -1191,6 +1193,8 @@
    4.17 +   rpath = command_line.rpath;
    4.18 +   if (rpath == NULL)
    4.19 +     rpath = (const char *) getenv ("LD_RUN_PATH");
    4.20 ++  if ((rpath) && (strlen (rpath) == 0))
    4.21 ++      rpath = NULL;
    4.22 +   if (! (bfd_elf_size_dynamic_sections
    4.23 + 	 (output_bfd, command_line.soname, rpath,
    4.24 + 	  command_line.filter_shlib,