patches/binutils/2.15/100-uclibc.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Sep 04 17:27:16 2009 +0200 (2009-09-04)
changeset 1512 439a6b292917
parent 1 eeea35fbf182
permissions -rw-r--r--
TODO: update

Add TODO list for m4, autoconf, automake and libtool.
Building our own versions would remove burden from the users
who have older versions on their distributions, and are not
ready/able/allowed to upgrade.
     1 diff -uNr binutils-2.15-pristine/bfd/configure binutils-2.15/bfd/configure
     2 --- binutils-2.15-pristine/bfd/configure	2004-05-17 12:35:57.000000000 -0700
     3 +++ binutils-2.15/bfd/configure	2004-07-19 16:36:19.000000000 -0700
     4 @@ -1009,7 +1009,7 @@
     5  bfd_version_string="\"${VERSION}\""
     6  if test x${is_release} = x; then
     7    bfd_version_date=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
     8 -  bfd_version_string="\"${VERSION} ${bfd_version_date}\""
     9 +  bfd_version_string="\"${VERSION} ${bfd_version_date} uClibc\""
    10  fi
    11  
    12  
    13 diff -uNr binutils-2.15-pristine/bfd/elf32-arm.h binutils-2.15/bfd/elf32-arm.h
    14 --- binutils-2.15-pristine/bfd/elf32-arm.h	2004-05-17 12:35:58.000000000 -0700
    15 +++ binutils-2.15/bfd/elf32-arm.h	2004-07-19 16:37:06.000000000 -0700
    16 @@ -124,7 +124,7 @@
    17  
    18  /* The name of the dynamic interpreter.  This is put in the .interp
    19     section.  */
    20 -#define ELF_DYNAMIC_INTERPRETER     "/usr/lib/ld.so.1"
    21 +#define ELF_DYNAMIC_INTERPRETER     "/lib/ld-uClibc.so.0"
    22  
    23  #ifdef FOUR_WORD_PLT
    24  
    25 diff -uNr binutils-2.15-pristine/bfd/elf32-cris.c binutils-2.15/bfd/elf32-cris.c
    26 --- binutils-2.15-pristine/bfd/elf32-cris.c	2004-05-17 12:35:58.000000000 -0700
    27 +++ binutils-2.15/bfd/elf32-cris.c	2004-07-19 16:49:59.000000000 -0700
    28 @@ -536,7 +536,7 @@
    29  /* The name of the dynamic interpreter.  This is put in the .interp
    30     section.  */
    31  
    32 -#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so.1"
    33 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
    34  
    35  /* The size in bytes of an entry in the procedure linkage table.  */
    36  
    37 diff -uNr binutils-2.15-pristine/bfd/elf32-frv.c binutils-2.15/bfd/elf32-frv.c
    38 --- binutils-2.15-pristine/bfd/elf32-frv.c	2004-05-17 12:35:58.000000000 -0700
    39 +++ binutils-2.15/bfd/elf32-frv.c	2004-07-19 16:49:59.000000000 -0700
    40 @@ -2913,7 +2913,7 @@
    41  /* The name of the dynamic interpreter.  This is put in the .interp
    42     section.  */
    43  
    44 -#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so.1"
    45 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
    46  
    47  #define DEFAULT_STACK_SIZE 0x20000
    48  
    49 diff -uNr binutils-2.15-pristine/bfd/elf32-hppa.c binutils-2.15/bfd/elf32-hppa.c
    50 --- binutils-2.15-pristine/bfd/elf32-hppa.c	2004-05-17 12:35:58.000000000 -0700
    51 +++ binutils-2.15/bfd/elf32-hppa.c	2004-07-19 16:49:59.000000000 -0700
    52 @@ -115,7 +115,7 @@
    53  
    54  #define PLT_ENTRY_SIZE 8
    55  #define GOT_ENTRY_SIZE 4
    56 -#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so.1"
    57 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
    58  
    59  static const bfd_byte plt_stub[] =
    60  {
    61 diff -uNr binutils-2.15-pristine/bfd/elf32-ppc.c binutils-2.15/bfd/elf32-ppc.c
    62 --- binutils-2.15-pristine/bfd/elf32-ppc.c	2004-05-17 12:35:59.000000000 -0700
    63 +++ binutils-2.15/bfd/elf32-ppc.c	2004-07-19 16:49:59.000000000 -0700
    64 @@ -49,7 +49,7 @@
    65  
    66  /* The name of the dynamic interpreter.  This is put in the .interp
    67     section.  */
    68 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
    69 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
    70  
    71  /* The size in bytes of an entry in the procedure linkage table.  */
    72  #define PLT_ENTRY_SIZE 12
    73 diff -uNr binutils-2.15-pristine/bfd/elf32-s390.c binutils-2.15/bfd/elf32-s390.c
    74 --- binutils-2.15-pristine/bfd/elf32-s390.c	2004-05-17 12:35:59.000000000 -0700
    75 +++ binutils-2.15/bfd/elf32-s390.c	2004-07-19 16:49:59.000000000 -0700
    76 @@ -452,7 +452,7 @@
    77  /* The name of the dynamic interpreter.  This is put in the .interp
    78     section.  */
    79  
    80 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
    81 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
    82  
    83  /* If ELIMINATE_COPY_RELOCS is non-zero, the linker will try to avoid
    84     copying dynamic variables from a shared lib into an app's dynbss
    85 diff -uNr binutils-2.15-pristine/bfd/elf32-sparc.c binutils-2.15/bfd/elf32-sparc.c
    86 --- binutils-2.15-pristine/bfd/elf32-sparc.c	2004-05-17 12:36:00.000000000 -0700
    87 +++ binutils-2.15/bfd/elf32-sparc.c	2004-07-19 16:49:59.000000000 -0700
    88 @@ -536,7 +536,7 @@
    89  /* The name of the dynamic interpreter.  This is put in the .interp
    90     section.  */
    91  
    92 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
    93 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
    94  
    95  /* The nop opcode we use.  */
    96  
    97 diff -uNr binutils-2.15-pristine/bfd/elf64-ppc.c binutils-2.15/bfd/elf64-ppc.c
    98 --- binutils-2.15-pristine/bfd/elf64-ppc.c	2004-05-17 12:36:01.000000000 -0700
    99 +++ binutils-2.15/bfd/elf64-ppc.c	2004-07-19 16:49:59.000000000 -0700
   100 @@ -99,7 +99,7 @@
   101  
   102  /* The name of the dynamic interpreter.  This is put in the .interp
   103     section.  */
   104 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
   105 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
   106  
   107  /* The size in bytes of an entry in the procedure linkage table.  */
   108  #define PLT_ENTRY_SIZE 24
   109 diff -uNr binutils-2.15-pristine/bfd/elf64-s390.c binutils-2.15/bfd/elf64-s390.c
   110 --- binutils-2.15-pristine/bfd/elf64-s390.c	2004-05-17 12:36:01.000000000 -0700
   111 +++ binutils-2.15/bfd/elf64-s390.c	2004-07-19 16:49:59.000000000 -0700
   112 @@ -473,7 +473,7 @@
   113  /* The name of the dynamic interpreter.  This is put in the .interp
   114     section.  */
   115  
   116 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
   117 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
   118  
   119  /* If ELIMINATE_COPY_RELOCS is non-zero, the linker will try to avoid
   120     copying dynamic variables from a shared lib into an app's dynbss
   121 diff -uNr binutils-2.15-pristine/bfd/elf-m10300.c binutils-2.15/bfd/elf-m10300.c
   122 --- binutils-2.15-pristine/bfd/elf-m10300.c	2004-05-17 12:35:57.000000000 -0700
   123 +++ binutils-2.15/bfd/elf-m10300.c	2004-07-19 16:49:59.000000000 -0700
   124 @@ -4026,7 +4026,7 @@
   125  /* The name of the dynamic interpreter.  This is put in the .interp
   126     section.  */
   127  
   128 -#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so.1"
   129 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
   130  
   131  /* Create dynamic sections when linking against a dynamic object.  */
   132  
   133 diff -uNr binutils-2.15-pristine/bfd/elfxx-ia64.c binutils-2.15/bfd/elfxx-ia64.c
   134 --- binutils-2.15-pristine/bfd/elfxx-ia64.c	2004-05-17 12:36:02.000000000 -0700
   135 +++ binutils-2.15/bfd/elfxx-ia64.c	2004-07-19 16:49:59.000000000 -0700
   136 @@ -643,7 +643,7 @@
   137    0x60, 0x00, 0x80, 0x00               /*               br.few b6;;        */
   138  };
   139  
   140 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
   141 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
   142  
   143  static const bfd_byte oor_brl[16] =
   144  {