Add patches for binutils-2.17.50.0.17 (vampirised from buildroot).
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Aug 06 19:52:44 2007 +0000 (2007-08-06)
changeset 31460a7282ec3c4
parent 313 2f223aafc7cb
child 315 32cc893978ac
Add patches for binutils-2.17.50.0.17 (vampirised from buildroot).
patches/binutils/2.17.50.0.17/110-arm-eabi-conf.patch
patches/binutils/2.17.50.0.17/300-001_ld_makefile_patch.patch
patches/binutils/2.17.50.0.17/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.17/110-arm-eabi-conf.patch	Mon Aug 06 19:52:44 2007 +0000
     1.3 @@ -0,0 +1,24 @@
     1.4 +diff -u binutils-2.17.50.0.17.oorig/configure binutils-2.17.50.0.17/configure
     1.5 +--- binutils-2.17.50.0.17.oorig/configure	2007-06-18 19:29:28.000000000 +0200
     1.6 ++++ binutils-2.17.50.0.17/configure	2007-06-25 09:58:36.000000000 +0200
     1.7 +@@ -2224,7 +2224,7 @@
     1.8 +   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
     1.9 +     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
    1.10 +     ;;
    1.11 +-  arm*-*-linux-gnueabi)
    1.12 ++  arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi)
    1.13 +     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
    1.14 +     noconfigdirs="$noconfigdirs target-libjava target-libobjc"
    1.15 +     ;;
    1.16 +diff -u binutils-2.17.50.0.17.oorig/configure.ac binutils-2.17.50.0.17/configure.ac
    1.17 +--- binutils-2.17.50.0.17.oorig/configure.ac	2007-06-18 19:29:28.000000000 +0200
    1.18 ++++ binutils-2.17.50.0.17/configure.ac	2007-06-25 09:58:36.000000000 +0200
    1.19 +@@ -513,7 +513,7 @@
    1.20 +   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
    1.21 +     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
    1.22 +     ;;
    1.23 +-  arm*-*-linux-gnueabi)
    1.24 ++  arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi)
    1.25 +     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
    1.26 +     noconfigdirs="$noconfigdirs target-libjava target-libobjc"
    1.27 +     ;;
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/patches/binutils/2.17.50.0.17/300-001_ld_makefile_patch.patch	Mon Aug 06 19:52:44 2007 +0000
     2.3 @@ -0,0 +1,24 @@
     2.4 +diff -u binutils-2.17.50.0.17.oorig/ld/Makefile.am binutils-2.17.50.0.17/ld/Makefile.am
     2.5 +--- binutils-2.17.50.0.17.oorig/ld/Makefile.am	2007-06-18 19:29:29.000000000 +0200
     2.6 ++++ binutils-2.17.50.0.17/ld/Makefile.am	2007-06-25 10:00:36.000000000 +0200
     2.7 +@@ -18,7 +18,7 @@
     2.8 + # We put the scripts in the directory $(scriptdir)/ldscripts.
     2.9 + # We can't put the scripts in $(datadir) because the SEARCH_DIR
    2.10 + # directives need to be different for native and cross linkers.
    2.11 +-scriptdir = $(tooldir)/lib
    2.12 ++scriptdir = $(libdir)
    2.13 + 
    2.14 + EMUL = @EMUL@
    2.15 + EMULATION_OFILES = @EMULATION_OFILES@
    2.16 +diff -u binutils-2.17.50.0.17.oorig/ld/Makefile.in binutils-2.17.50.0.17/ld/Makefile.in
    2.17 +--- binutils-2.17.50.0.17.oorig/ld/Makefile.in	2007-06-18 19:29:29.000000000 +0200
    2.18 ++++ binutils-2.17.50.0.17/ld/Makefile.in	2007-06-25 10:00:36.000000000 +0200
    2.19 +@@ -287,7 +287,7 @@
    2.20 + # We put the scripts in the directory $(scriptdir)/ldscripts.
    2.21 + # We can't put the scripts in $(datadir) because the SEARCH_DIR
    2.22 + # directives need to be different for native and cross linkers.
    2.23 +-scriptdir = $(tooldir)/lib
    2.24 ++scriptdir = $(libdir)
    2.25 + BASEDIR = $(srcdir)/..
    2.26 + BFDDIR = $(BASEDIR)/bfd
    2.27 + INCDIR = $(BASEDIR)/include
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/patches/binutils/2.17.50.0.17/300-012_check_ldrunpath_length.patch	Mon Aug 06 19:52:44 2007 +0000
     3.3 @@ -0,0 +1,21 @@
     3.4 +diff -u binutils-2.17.50.0.17.oorig/ld/emultempl/elf32.em binutils-2.17.50.0.17/ld/emultempl/elf32.em
     3.5 +--- binutils-2.17.50.0.17.oorig/ld/emultempl/elf32.em	2007-06-18 19:31:40.000000000 +0200
     3.6 ++++ binutils-2.17.50.0.17/ld/emultempl/elf32.em	2007-06-25 10:01:25.000000000 +0200
     3.7 +@@ -1007,6 +1007,8 @@
     3.8 + 	      && command_line.rpath == NULL)
     3.9 + 	    {
    3.10 + 	      lib_path = (const char *) getenv ("LD_RUN_PATH");
    3.11 ++	      if ((lib_path) && (strlen (lib_path) == 0))
    3.12 ++		  lib_path = NULL;
    3.13 + 	      if (gld${EMULATION_NAME}_search_needed (lib_path, &n,
    3.14 + 						      force))
    3.15 + 		break;
    3.16 +@@ -1191,6 +1193,8 @@
    3.17 +   rpath = command_line.rpath;
    3.18 +   if (rpath == NULL)
    3.19 +     rpath = (const char *) getenv ("LD_RUN_PATH");
    3.20 ++  if ((rpath) && (strlen (rpath) == 0))
    3.21 ++      rpath = NULL;
    3.22 +   if (! (bfd_elf_size_dynamic_sections
    3.23 + 	 (output_bfd, command_line.soname, rpath,
    3.24 + 	  command_line.filter_shlib,