1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/binutils/2.15/002-uclibc.patch Sat May 19 11:01:47 2007 +0000
1.3 @@ -0,0 +1,144 @@
1.4 +diff -uNr binutils-2.15-pristine/bfd/configure binutils-2.15/bfd/configure
1.5 +--- binutils-2.15-pristine/bfd/configure 2004-05-17 12:35:57.000000000 -0700
1.6 ++++ binutils-2.15/bfd/configure 2004-07-19 16:36:19.000000000 -0700
1.7 +@@ -1009,7 +1009,7 @@
1.8 + bfd_version_string="\"${VERSION}\""
1.9 + if test x${is_release} = x; then
1.10 + bfd_version_date=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
1.11 +- bfd_version_string="\"${VERSION} ${bfd_version_date}\""
1.12 ++ bfd_version_string="\"${VERSION} ${bfd_version_date} uClibc\""
1.13 + fi
1.14 +
1.15 +
1.16 +diff -uNr binutils-2.15-pristine/bfd/elf32-arm.h binutils-2.15/bfd/elf32-arm.h
1.17 +--- binutils-2.15-pristine/bfd/elf32-arm.h 2004-05-17 12:35:58.000000000 -0700
1.18 ++++ binutils-2.15/bfd/elf32-arm.h 2004-07-19 16:37:06.000000000 -0700
1.19 +@@ -124,7 +124,7 @@
1.20 +
1.21 + /* The name of the dynamic interpreter. This is put in the .interp
1.22 + section. */
1.23 +-#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
1.24 ++#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
1.25 +
1.26 + #ifdef FOUR_WORD_PLT
1.27 +
1.28 +diff -uNr binutils-2.15-pristine/bfd/elf32-cris.c binutils-2.15/bfd/elf32-cris.c
1.29 +--- binutils-2.15-pristine/bfd/elf32-cris.c 2004-05-17 12:35:58.000000000 -0700
1.30 ++++ binutils-2.15/bfd/elf32-cris.c 2004-07-19 16:49:59.000000000 -0700
1.31 +@@ -536,7 +536,7 @@
1.32 + /* The name of the dynamic interpreter. This is put in the .interp
1.33 + section. */
1.34 +
1.35 +-#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so.1"
1.36 ++#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
1.37 +
1.38 + /* The size in bytes of an entry in the procedure linkage table. */
1.39 +
1.40 +diff -uNr binutils-2.15-pristine/bfd/elf32-frv.c binutils-2.15/bfd/elf32-frv.c
1.41 +--- binutils-2.15-pristine/bfd/elf32-frv.c 2004-05-17 12:35:58.000000000 -0700
1.42 ++++ binutils-2.15/bfd/elf32-frv.c 2004-07-19 16:49:59.000000000 -0700
1.43 +@@ -2913,7 +2913,7 @@
1.44 + /* The name of the dynamic interpreter. This is put in the .interp
1.45 + section. */
1.46 +
1.47 +-#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so.1"
1.48 ++#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
1.49 +
1.50 + #define DEFAULT_STACK_SIZE 0x20000
1.51 +
1.52 +diff -uNr binutils-2.15-pristine/bfd/elf32-hppa.c binutils-2.15/bfd/elf32-hppa.c
1.53 +--- binutils-2.15-pristine/bfd/elf32-hppa.c 2004-05-17 12:35:58.000000000 -0700
1.54 ++++ binutils-2.15/bfd/elf32-hppa.c 2004-07-19 16:49:59.000000000 -0700
1.55 +@@ -115,7 +115,7 @@
1.56 +
1.57 + #define PLT_ENTRY_SIZE 8
1.58 + #define GOT_ENTRY_SIZE 4
1.59 +-#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so.1"
1.60 ++#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
1.61 +
1.62 + static const bfd_byte plt_stub[] =
1.63 + {
1.64 +diff -uNr binutils-2.15-pristine/bfd/elf32-ppc.c binutils-2.15/bfd/elf32-ppc.c
1.65 +--- binutils-2.15-pristine/bfd/elf32-ppc.c 2004-05-17 12:35:59.000000000 -0700
1.66 ++++ binutils-2.15/bfd/elf32-ppc.c 2004-07-19 16:49:59.000000000 -0700
1.67 +@@ -49,7 +49,7 @@
1.68 +
1.69 + /* The name of the dynamic interpreter. This is put in the .interp
1.70 + section. */
1.71 +-#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
1.72 ++#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
1.73 +
1.74 + /* The size in bytes of an entry in the procedure linkage table. */
1.75 + #define PLT_ENTRY_SIZE 12
1.76 +diff -uNr binutils-2.15-pristine/bfd/elf32-s390.c binutils-2.15/bfd/elf32-s390.c
1.77 +--- binutils-2.15-pristine/bfd/elf32-s390.c 2004-05-17 12:35:59.000000000 -0700
1.78 ++++ binutils-2.15/bfd/elf32-s390.c 2004-07-19 16:49:59.000000000 -0700
1.79 +@@ -452,7 +452,7 @@
1.80 + /* The name of the dynamic interpreter. This is put in the .interp
1.81 + section. */
1.82 +
1.83 +-#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
1.84 ++#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
1.85 +
1.86 + /* If ELIMINATE_COPY_RELOCS is non-zero, the linker will try to avoid
1.87 + copying dynamic variables from a shared lib into an app's dynbss
1.88 +diff -uNr binutils-2.15-pristine/bfd/elf32-sparc.c binutils-2.15/bfd/elf32-sparc.c
1.89 +--- binutils-2.15-pristine/bfd/elf32-sparc.c 2004-05-17 12:36:00.000000000 -0700
1.90 ++++ binutils-2.15/bfd/elf32-sparc.c 2004-07-19 16:49:59.000000000 -0700
1.91 +@@ -536,7 +536,7 @@
1.92 + /* The name of the dynamic interpreter. This is put in the .interp
1.93 + section. */
1.94 +
1.95 +-#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
1.96 ++#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
1.97 +
1.98 + /* The nop opcode we use. */
1.99 +
1.100 +diff -uNr binutils-2.15-pristine/bfd/elf64-ppc.c binutils-2.15/bfd/elf64-ppc.c
1.101 +--- binutils-2.15-pristine/bfd/elf64-ppc.c 2004-05-17 12:36:01.000000000 -0700
1.102 ++++ binutils-2.15/bfd/elf64-ppc.c 2004-07-19 16:49:59.000000000 -0700
1.103 +@@ -99,7 +99,7 @@
1.104 +
1.105 + /* The name of the dynamic interpreter. This is put in the .interp
1.106 + section. */
1.107 +-#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
1.108 ++#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
1.109 +
1.110 + /* The size in bytes of an entry in the procedure linkage table. */
1.111 + #define PLT_ENTRY_SIZE 24
1.112 +diff -uNr binutils-2.15-pristine/bfd/elf64-s390.c binutils-2.15/bfd/elf64-s390.c
1.113 +--- binutils-2.15-pristine/bfd/elf64-s390.c 2004-05-17 12:36:01.000000000 -0700
1.114 ++++ binutils-2.15/bfd/elf64-s390.c 2004-07-19 16:49:59.000000000 -0700
1.115 +@@ -473,7 +473,7 @@
1.116 + /* The name of the dynamic interpreter. This is put in the .interp
1.117 + section. */
1.118 +
1.119 +-#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
1.120 ++#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
1.121 +
1.122 + /* If ELIMINATE_COPY_RELOCS is non-zero, the linker will try to avoid
1.123 + copying dynamic variables from a shared lib into an app's dynbss
1.124 +diff -uNr binutils-2.15-pristine/bfd/elf-m10300.c binutils-2.15/bfd/elf-m10300.c
1.125 +--- binutils-2.15-pristine/bfd/elf-m10300.c 2004-05-17 12:35:57.000000000 -0700
1.126 ++++ binutils-2.15/bfd/elf-m10300.c 2004-07-19 16:49:59.000000000 -0700
1.127 +@@ -4026,7 +4026,7 @@
1.128 + /* The name of the dynamic interpreter. This is put in the .interp
1.129 + section. */
1.130 +
1.131 +-#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so.1"
1.132 ++#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
1.133 +
1.134 + /* Create dynamic sections when linking against a dynamic object. */
1.135 +
1.136 +diff -uNr binutils-2.15-pristine/bfd/elfxx-ia64.c binutils-2.15/bfd/elfxx-ia64.c
1.137 +--- binutils-2.15-pristine/bfd/elfxx-ia64.c 2004-05-17 12:36:02.000000000 -0700
1.138 ++++ binutils-2.15/bfd/elfxx-ia64.c 2004-07-19 16:49:59.000000000 -0700
1.139 +@@ -643,7 +643,7 @@
1.140 + 0x60, 0x00, 0x80, 0x00 /* br.few b6;; */
1.141 + };
1.142 +
1.143 +-#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
1.144 ++#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
1.145 +
1.146 + static const bfd_byte oor_brl[16] =
1.147 + {