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