]> git.ipfire.org Git - ipfire-2.x.git/blob - src/uClibc/sources/binutils-002-uclibc.patch
git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848...
[ipfire-2.x.git] / src / uClibc / sources / binutils-002-uclibc.patch
1 diff -urN binutils-2.13.90.0.14/bfd/configure binutils-2.13.90.0.14.new/bfd/configure
2 --- binutils-2.13.90.0.14/bfd/configure 2002-11-14 12:37:55.000000000 -0500
3 +++ binutils-2.13.90.0.14.new/bfd/configure 2002-11-19 16:15:42.000000000 -0500
4 @@ -1208,7 +1208,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 -urN binutils-2.14.90.0.6.orig/bfd/elf32-arm.h binutils-2.14.90.0.6/bfd/elf32-arm.h
14 --- binutils-2.14.90.0.6.orig/bfd/elf32-arm.h 2003-08-21 09:28:47.000000000 -0600
15 +++ binutils-2.14.90.0.6/bfd/elf32-arm.h 2003-10-13 21:05:03.000000000 -0600
16 @@ -117,7 +117,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 /* The size in bytes of an entry in the procedure linkage table. */
24 #define PLT_ENTRY_SIZE 16
25 diff -urN binutils-2.14.90.0.6.orig/bfd/elf32-cris.c binutils-2.14.90.0.6/bfd/elf32-cris.c
26 --- binutils-2.14.90.0.6.orig/bfd/elf32-cris.c 2003-08-21 09:28:47.000000000 -0600
27 +++ binutils-2.14.90.0.6/bfd/elf32-cris.c 2003-10-13 21:05:03.000000000 -0600
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 -urN binutils-2.14.90.0.6.orig/bfd/elf32-hppa.c binutils-2.14.90.0.6/bfd/elf32-hppa.c
38 --- binutils-2.14.90.0.6.orig/bfd/elf32-hppa.c 2003-08-21 09:28:47.000000000 -0600
39 +++ binutils-2.14.90.0.6/bfd/elf32-hppa.c 2003-10-13 21:05:03.000000000 -0600
40 @@ -115,7 +115,7 @@
41
42 #define PLT_ENTRY_SIZE 8
43 #define GOT_ENTRY_SIZE 4
44 -#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so.1"
45 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
46
47 static const bfd_byte plt_stub[] =
48 {
49 diff -urN binutils-2.14.90.0.6.orig/bfd/elf32-i370.c binutils-2.14.90.0.6/bfd/elf32-i370.c
50 --- binutils-2.14.90.0.6.orig/bfd/elf32-i370.c 2003-07-23 09:08:08.000000000 -0600
51 +++ binutils-2.14.90.0.6/bfd/elf32-i370.c 2003-10-13 21:05:03.000000000 -0600
52 @@ -305,7 +305,7 @@
53 /* The name of the dynamic interpreter. This is put in the .interp
54 section. */
55
56 -#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so"
57 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
58
59 /* Set the howto pointer for an i370 ELF reloc. */
60
61 diff -urN binutils-2.14.90.0.6.orig/bfd/elf32-i386.c binutils-2.14.90.0.6/bfd/elf32-i386.c
62 --- binutils-2.14.90.0.6.orig/bfd/elf32-i386.c 2003-08-21 09:28:47.000000000 -0600
63 +++ binutils-2.14.90.0.6/bfd/elf32-i386.c 2003-10-13 21:05:03.000000000 -0600
64 @@ -423,7 +423,7 @@
65 /* The name of the dynamic interpreter. This is put in the .interp
66 section. */
67
68 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/libc.so.1"
69 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
70
71 /* If ELIMINATE_COPY_RELOCS is non-zero, the linker will try to avoid
72 copying dynamic variables from a shared lib into an app's dynbss
73 diff -urN binutils-2.14.90.0.6.orig/bfd/elf32-m68k.c binutils-2.14.90.0.6/bfd/elf32-m68k.c
74 --- binutils-2.14.90.0.6.orig/bfd/elf32-m68k.c 2003-08-21 09:28:47.000000000 -0600
75 +++ binutils-2.14.90.0.6/bfd/elf32-m68k.c 2003-10-13 21:05:03.000000000 -0600
76 @@ -187,7 +187,7 @@
77 /* The name of the dynamic interpreter. This is put in the .interp
78 section. */
79
80 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/libc.so.1"
81 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
82
83 /* The size in bytes of an entry in the procedure linkage table. */
84
85 diff -urN binutils-2.14.90.0.6.orig/bfd/elf32-ppc.c binutils-2.14.90.0.6/bfd/elf32-ppc.c
86 --- binutils-2.14.90.0.6.orig/bfd/elf32-ppc.c 2003-08-21 09:28:47.000000000 -0600
87 +++ binutils-2.14.90.0.6/bfd/elf32-ppc.c 2003-10-13 21:05:03.000000000 -0600
88 @@ -49,7 +49,7 @@
89
90 /* The name of the dynamic interpreter. This is put in the .interp
91 section. */
92 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
93 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
94
95 /* The size in bytes of an entry in the procedure linkage table. */
96 #define PLT_ENTRY_SIZE 12
97 diff -urN binutils-2.14.90.0.6.orig/bfd/elf32-s390.c binutils-2.14.90.0.6/bfd/elf32-s390.c
98 --- binutils-2.14.90.0.6.orig/bfd/elf32-s390.c 2003-08-21 09:28:47.000000000 -0600
99 +++ binutils-2.14.90.0.6/bfd/elf32-s390.c 2003-10-13 21:05:03.000000000 -0600
100 @@ -452,7 +452,7 @@
101 /* The name of the dynamic interpreter. This is put in the .interp
102 section. */
103
104 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
105 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
106
107 /* If ELIMINATE_COPY_RELOCS is non-zero, the linker will try to avoid
108 copying dynamic variables from a shared lib into an app's dynbss
109 diff -urN binutils-2.14.90.0.6.orig/bfd/elf32-sh.c binutils-2.14.90.0.6/bfd/elf32-sh.c
110 --- binutils-2.14.90.0.6.orig/bfd/elf32-sh.c 2003-08-21 09:28:47.000000000 -0600
111 +++ binutils-2.14.90.0.6/bfd/elf32-sh.c 2003-10-13 21:05:03.000000000 -0600
112 @@ -113,7 +113,7 @@
113 /* The name of the dynamic interpreter. This is put in the .interp
114 section. */
115
116 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/libc.so.1"
117 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
118
119 static reloc_howto_type sh_elf_howto_table[] =
120 {
121 diff -urN binutils-2.14.90.0.6.orig/bfd/elf32-sparc.c binutils-2.14.90.0.6/bfd/elf32-sparc.c
122 --- binutils-2.14.90.0.6.orig/bfd/elf32-sparc.c 2003-08-21 09:28:48.000000000 -0600
123 +++ binutils-2.14.90.0.6/bfd/elf32-sparc.c 2003-10-13 21:05:03.000000000 -0600
124 @@ -507,7 +507,7 @@
125 /* The name of the dynamic interpreter. This is put in the .interp
126 section. */
127
128 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
129 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
130
131 /* The nop opcode we use. */
132
133 diff -urN binutils-2.14.90.0.6.orig/bfd/elf32-vax.c binutils-2.14.90.0.6/bfd/elf32-vax.c
134 --- binutils-2.14.90.0.6.orig/bfd/elf32-vax.c 2003-08-21 09:28:48.000000000 -0600
135 +++ binutils-2.14.90.0.6/bfd/elf32-vax.c 2003-10-13 21:05:03.000000000 -0600
136 @@ -347,7 +347,7 @@
137 /* The name of the dynamic interpreter. This is put in the .interp
138 section. */
139
140 -#define ELF_DYNAMIC_INTERPRETER "/usr/libexec/ld.elf_so"
141 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
142
143 /* The size in bytes of an entry in the procedure linkage table. */
144
145 diff -urN binutils-2.14.90.0.6.orig/bfd/elf32-xtensa.c binutils-2.14.90.0.6/bfd/elf32-xtensa.c
146 --- binutils-2.14.90.0.6.orig/bfd/elf32-xtensa.c 2003-08-21 09:28:48.000000000 -0600
147 +++ binutils-2.14.90.0.6/bfd/elf32-xtensa.c 2003-10-13 21:05:03.000000000 -0600
148 @@ -404,7 +404,7 @@
149 /* The name of the dynamic interpreter. This is put in the .interp
150 section. */
151
152 -#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so"
153 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
154
155 /* The size in bytes of an entry in the procedure linkage table.
156 (This does _not_ include the space for the literals associated with
157 diff -urN binutils-2.14.90.0.6.orig/bfd/elf64-alpha.c binutils-2.14.90.0.6/bfd/elf64-alpha.c
158 --- binutils-2.14.90.0.6.orig/bfd/elf64-alpha.c 2003-08-21 09:28:48.000000000 -0600
159 +++ binutils-2.14.90.0.6/bfd/elf64-alpha.c 2003-10-13 21:05:03.000000000 -0600
160 @@ -2328,7 +2328,7 @@
161
162 #define MAX_GOT_SIZE (64*1024)
163
164 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so"
165 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
166 \f
167 /* Handle an Alpha specific section when reading an object file. This
168 is called when elfcode.h finds a section with an unknown type.
169 diff -urN binutils-2.14.90.0.6.orig/bfd/elf64-hppa.c binutils-2.14.90.0.6/bfd/elf64-hppa.c
170 --- binutils-2.14.90.0.6.orig/bfd/elf64-hppa.c 2003-08-21 09:28:48.000000000 -0600
171 +++ binutils-2.14.90.0.6/bfd/elf64-hppa.c 2003-10-13 21:05:03.000000000 -0600
172 @@ -31,7 +31,7 @@
173 #define DLT_ENTRY_SIZE 0x8
174 #define OPD_ENTRY_SIZE 0x20
175
176 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/pa20_64/dld.sl"
177 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
178
179 /* The stub is supposed to load the target address and target's DP
180 value out of the PLT, then do an external branch to the target
181 diff -urN binutils-2.14.90.0.6.orig/bfd/elf64-ppc.c binutils-2.14.90.0.6/bfd/elf64-ppc.c
182 --- binutils-2.14.90.0.6.orig/bfd/elf64-ppc.c 2003-08-21 09:28:48.000000000 -0600
183 +++ binutils-2.14.90.0.6/bfd/elf64-ppc.c 2003-10-13 21:05:03.000000000 -0600
184 @@ -94,7 +94,7 @@
185
186 /* The name of the dynamic interpreter. This is put in the .interp
187 section. */
188 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
189 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
190
191 /* The size in bytes of an entry in the procedure linkage table. */
192 #define PLT_ENTRY_SIZE 24
193 diff -urN binutils-2.14.90.0.6.orig/bfd/elf64-s390.c binutils-2.14.90.0.6/bfd/elf64-s390.c
194 --- binutils-2.14.90.0.6.orig/bfd/elf64-s390.c 2003-08-21 09:28:48.000000000 -0600
195 +++ binutils-2.14.90.0.6/bfd/elf64-s390.c 2003-10-13 21:05:03.000000000 -0600
196 @@ -473,7 +473,7 @@
197 /* The name of the dynamic interpreter. This is put in the .interp
198 section. */
199
200 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
201 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
202
203 /* If ELIMINATE_COPY_RELOCS is non-zero, the linker will try to avoid
204 copying dynamic variables from a shared lib into an app's dynbss
205 diff -urN binutils-2.14.90.0.6.orig/bfd/elf64-sh64.c binutils-2.14.90.0.6/bfd/elf64-sh64.c
206 --- binutils-2.14.90.0.6.orig/bfd/elf64-sh64.c 2003-08-21 09:28:48.000000000 -0600
207 +++ binutils-2.14.90.0.6/bfd/elf64-sh64.c 2003-10-13 21:05:03.000000000 -0600
208 @@ -54,7 +54,7 @@
209 /* Return offset of the relocation in PLT entry. */
210 #define elf_sh64_plt_reloc_offset(info) (info->shared ? 52 : 44)
211
212 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/libc.so.1"
213 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
214
215 /* The sh linker needs to keep track of the number of relocs that it
216 decides to copy in check_relocs for each symbol. This is so that
217 diff -urN binutils-2.14.90.0.6.orig/bfd/elf64-sparc.c binutils-2.14.90.0.6/bfd/elf64-sparc.c
218 --- binutils-2.14.90.0.6.orig/bfd/elf64-sparc.c 2003-08-21 09:28:48.000000000 -0600
219 +++ binutils-2.14.90.0.6/bfd/elf64-sparc.c 2003-10-13 21:05:03.000000000 -0600
220 @@ -959,7 +959,7 @@
221 #define LARGE_PLT_THRESHOLD 32768
222 #define GOT_RESERVED_ENTRIES 1
223
224 -#define ELF_DYNAMIC_INTERPRETER "/usr/lib/sparcv9/ld.so.1"
225 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
226
227 /* Fill in the .plt section. */
228
229 diff -urN binutils-2.14.90.0.6.orig/bfd/elf64-x86-64.c binutils-2.14.90.0.6/bfd/elf64-x86-64.c
230 --- binutils-2.14.90.0.6.orig/bfd/elf64-x86-64.c 2003-08-21 09:28:48.000000000 -0600
231 +++ binutils-2.14.90.0.6/bfd/elf64-x86-64.c 2003-10-13 21:05:03.000000000 -0600
232 @@ -258,7 +258,7 @@
233 /* The name of the dynamic interpreter. This is put in the .interp
234 section. */
235
236 -#define ELF_DYNAMIC_INTERPRETER "/lib/ld64.so.1"
237 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0"
238
239 /* If ELIMINATE_COPY_RELOCS is non-zero, the linker will try to avoid
240 copying dynamic variables from a shared lib into an app's dynbss