]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/binutils/binutils-2.16/binutils-2.16-linux-uclibc.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / binutils / binutils-2.16 / binutils-2.16-linux-uclibc.patch
1 # This patch adds 'linux-uclibc' to all cases which otherwise only
2 # fire for 'linux' - most of the time the 'linux-gnu*' cases.  This
3 # ensures that by default *-*-linux-uclibc is handled in the same way
4 # as *-*-linux-gnu
5 #
6 --- binutils-2.16/bfd/config.bfd.orig   2005-09-06 19:58:39.153670708 -0700
7 +++ binutils-2.16/bfd/config.bfd        2005-09-06 20:03:14.959026045 -0700
8 @@ -140,7 +140,7 @@
9      targ_defvec=ecoffalpha_little_vec
10      targ_selvecs=bfd_elf64_alpha_vec
11      ;;
12 -  alpha*-*-linux-gnu* | alpha*-*-elf*)
13 +  alpha*-*-linux-gnu* | alpha*-*-linux-uclibc* | alpha*-*-elf*)
14      targ_defvec=bfd_elf64_alpha_vec
15      targ_selvecs=ecoffalpha_little_vec
16      ;;
17 @@ -150,7 +150,7 @@
18    alpha*-*-*)
19      targ_defvec=ecoffalpha_little_vec
20      ;;
21 -  ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
22 +  ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-linux-uclibc* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
23      targ_defvec=bfd_elf64_ia64_little_vec
24      targ_selvecs="bfd_elf64_ia64_big_vec bfd_efi_app_ia64_vec"
25      ;;
26 @@ -227,7 +227,7 @@
27      targ_defvec=bfd_elf32_littlearm_vec
28      targ_selvecs=bfd_elf32_bigarm_vec
29      ;;
30 -  armeb-*-elf | arm*b-*-linux-gnu*)
31 +  armeb-*-elf | arm*b-*-linux-gnu* | arm*b-*-linux-uclibc*)
32      targ_defvec=bfd_elf32_bigarm_vec
33      targ_selvecs=bfd_elf32_littlearm_vec
34      ;;
35 @@ -235,7 +235,7 @@
36      targ_defvec=bfd_elf32_littlearm_vec
37      targ_selvecs=bfd_elf32_bigarm_vec
38      ;;
39 -  arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-conix* | \
40 +  arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-linux-uclibc* | arm*-*-conix* | \
41    arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
42    arm*-*-eabi* )
43      targ_defvec=bfd_elf32_littlearm_vec
44 @@ -385,7 +385,7 @@
45      ;;
46  
47  #ifdef BFD64
48 -  hppa*64*-*-linux-gnu*)
49 +  hppa*64*-*-linux-gnu* | hppa*64*-*-linux-uclibc*)
50      targ_defvec=bfd_elf64_hppa_linux_vec
51      targ_selvecs=bfd_elf64_hppa_vec
52      ;;
53 @@ -396,7 +396,7 @@
54      ;;
55  #endif
56  
57 -  hppa*-*-linux-gnu*)
58 +  hppa*-*-linux-gnu* | hppa*-*-linux-uclibc*)
59      targ_defvec=bfd_elf32_hppa_linux_vec
60      targ_selvecs=bfd_elf32_hppa_vec
61      ;;
62 @@ -529,7 +529,7 @@
63      targ_selvecs=bfd_elf32_i386_vec
64      targ_underscore=yes
65      ;;
66 -  i[3-7]86-*-linux-gnu*)
67 +  i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
68      targ_defvec=bfd_elf32_i386_vec
69      targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec"
70      targ64_selvecs=bfd_elf64_x86_64_vec
71 @@ -543,7 +543,7 @@
72      targ_defvec=bfd_elf64_x86_64_vec
73      targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec bfd_efi_app_ia32_vec"
74      ;;
75 -  x86_64-*-linux-gnu*)
76 +  x86_64-*-linux-gnu* | x86_64-*-linux-uclibc*)
77      targ_defvec=bfd_elf64_x86_64_vec
78      targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec"
79      ;;
80 @@ -719,7 +719,7 @@
81      targ_selvecs=bfd_elf32_m68k_vec
82      targ_underscore=yes
83      ;;
84 -  m68*-*-linux-gnu*)
85 +  m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
86      targ_defvec=bfd_elf32_m68k_vec
87      targ_selvecs=m68klinux_vec
88      ;;
89 @@ -1005,7 +1005,7 @@
90      ;;
91  #endif
92    powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
93 -  powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems* | \
94 +  powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-linux-uclibc* | powerpc-*-rtems* | \
95    powerpc-*-chorus* | powerpc-*-vxworks* | powerpc-*-windiss*)
96      targ_defvec=bfd_elf32_powerpc_vec
97      targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
98 @@ -1042,7 +1042,7 @@
99      targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
100      ;;
101    powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
102 -  powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-vxworks* |\
103 +  powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-linux-uclibc* | powerpcle-*-vxworks* |\
104    powerpcle-*-rtems*)
105      targ_defvec=bfd_elf32_powerpcle_vec
106      targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
107 @@ -1213,7 +1213,7 @@
108      targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
109      targ_underscore=yes
110      ;;
111 -  sparc-*-linux-gnu*)
112 +  sparc-*-linux-gnu* | sparc-*-linux-uclibc*)
113      targ_defvec=bfd_elf32_sparc_vec
114      targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec"
115      ;;
116 @@ -1260,7 +1260,7 @@
117      targ_defvec=sunos_big_vec
118      targ_underscore=yes
119      ;;
120 -  sparc64-*-linux-gnu*)
121 +  sparc64-*-linux-gnu* | sparc64-*-linux-uclibc*)
122      targ_defvec=bfd_elf64_sparc_vec
123      targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec"
124      ;;
125 @@ -1329,7 +1329,7 @@
126      targ_underscore=yes
127      ;;
128  
129 -  vax-*-linux-gnu*)
130 +  vax-*-linux-gnu* | vax-*-linux-uclibc*)
131      targ_defvec=bfd_elf32_vax_vec
132      ;;
133  
134 --- binutils-2.16/bfd/configure.in.orig 2005-09-06 20:25:48.848220921 -0700
135 +++ binutils-2.16/bfd/configure.in      2005-09-06 20:26:58.628611924 -0700
136 @@ -163,7 +163,7 @@
137    alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
138         COREFILE=''
139         ;;
140 -  alpha*-*-linux-gnu*)
141 +  alpha*-*-linux-gnu* | alpha*-*-linux-uclibc*)
142         COREFILE=trad-core.lo
143         TRAD_HEADER='"hosts/alphalinux.h"'
144         ;;
145 @@ -248,7 +248,7 @@
146         TRAD_HEADER='"hosts/i386mach3.h"'
147         ;;
148  changequote(,)dnl
149 -  i[3-7]86-*-linux-gnu*)
150 +  i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
151  changequote([,])dnl
152         COREFILE=trad-core.lo
153         TRAD_HEADER='"hosts/i386linux.h"'
154 @@ -289,7 +289,7 @@
155         COREFILE=trad-core.lo
156         TRAD_HEADER='"hosts/hp300bsd.h"'
157         ;;
158 -  m68*-*-linux-gnu*)
159 +  m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
160         COREFILE=trad-core.lo
161         TRAD_HEADER='"hosts/m68klinux.h"'
162         ;;
163 @@ -375,7 +375,7 @@
164         COREFILE=trad-core.lo
165         TRAD_HEADER='"hosts/vaxult2.h"'
166         ;;
167 -  vax-*-linux-gnu*)
168 +  vax-*-linux-gnu* | vax-*-linux-uclibc*)
169         COREFILE=trad-core.lo
170         TRAD_HEADER='"hosts/vaxlinux.h"'
171         ;;
172 --- binutils-2.16/bfd/configure.orig    2005-09-06 20:03:14.991028059 -0700
173 +++ binutils-2.16/bfd/configure 2005-09-06 20:04:48.512913020 -0700
174 @@ -3572,7 +3572,7 @@
175    ;;
176  
177  # This must be Linux ELF.
178 -linux-gnu*)
179 +linux-gnu* | linux-uclibc*)
180    case $host_cpu in
181    alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
182      lt_cv_deplibs_check_method=pass_all ;;
183 @@ -9918,7 +9918,7 @@
184    alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
185         COREFILE=''
186         ;;
187 -  alpha*-*-linux-gnu*)
188 +  alpha*-*-linux-gnu* | alpha*-*-linux-uclibc*)
189         COREFILE=trad-core.lo
190         TRAD_HEADER='"hosts/alphalinux.h"'
191         ;;
192 @@ -9982,7 +9982,7 @@
193         COREFILE=trad-core.lo
194         TRAD_HEADER='"hosts/i386mach3.h"'
195         ;;
196 -  i[3-7]86-*-linux-gnu*)
197 +  i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
198         COREFILE=trad-core.lo
199         TRAD_HEADER='"hosts/i386linux.h"'
200         ;;
201 @@ -10020,7 +10020,7 @@
202         COREFILE=trad-core.lo
203         TRAD_HEADER='"hosts/hp300bsd.h"'
204         ;;
205 -  m68*-*-linux-gnu*)
206 +  m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
207         COREFILE=trad-core.lo
208         TRAD_HEADER='"hosts/m68klinux.h"'
209         ;;
210 @@ -10154,7 +10154,7 @@
211         COREFILE=trad-core.lo
212         TRAD_HEADER='"hosts/vaxult2.h"'
213         ;;
214 -  vax-*-linux-gnu*)
215 +  vax-*-linux-gnu* | vax-*-linux-uclibc*)
216         COREFILE=trad-core.lo
217         TRAD_HEADER='"hosts/vaxlinux.h"'
218         ;;
219 --- binutils-2.16/binutils/configure.orig       2005-09-06 20:26:58.676614945 -0700
220 +++ binutils-2.16/binutils/configure    2005-09-06 20:27:21.230034142 -0700
221 @@ -1564,7 +1564,7 @@
222    ;;
223  
224  # This must be Linux ELF.
225 -linux-gnu*)
226 +linux-gnu* | linux-uclibc*)
227    case $host_cpu in
228    alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
229      lt_cv_deplibs_check_method=pass_all ;;
230 --- binutils-2.16/configure.in.orig     2005-09-06 20:31:11.872547560 -0700
231 +++ binutils-2.16/configure.in  2005-09-06 20:31:47.322778302 -0700
232 @@ -346,7 +346,7 @@
233      ;;
234  "")
235      case "${target}" in
236 -    *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
237 +    *-*-linux*-gnu | *-*-linux*-uclibc | *-*-gnu* | *-*-k*bsd*-gnu)
238          # Enable libmudflap by default in GNU and friends.
239         ;;
240      *-*-freebsd*)
241 --- binutils-2.16/configure.orig        2005-09-06 20:30:00.120032459 -0700
242 +++ binutils-2.16/configure     2005-09-06 20:31:11.832545043 -0700
243 @@ -1142,7 +1142,7 @@
244      ;;
245  "")
246      case "${target}" in
247 -    *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
248 +    *-*-linux*-gnu | *-*-linux*-uclibc | *-*-gnu* | *-*-k*bsd*-gnu)
249          # Enable libmudflap by default in GNU and friends.
250         ;;
251      *-*-freebsd*)
252 --- binutils-2.16/gas/configure.in.orig 2005-09-06 20:32:36.993903909 -0700
253 +++ binutils-2.16/gas/configure.in      2005-09-06 20:32:55.667078938 -0700
254 @@ -161,7 +161,7 @@
255         AC_DEFINE(AIX_WEAK_SUPPORT, 1,
256                   [Define if using AIX 5.2 value for C_WEAKEXT.])
257         ;;
258 -      ppc-*-linux-gnu*)
259 +      ppc-*-linux-gnu* | ppc-*-linux-uclibc*)
260         case "$endian" in
261           big)  ;;
262           *)    AC_MSG_ERROR(GNU/Linux must be configured big endian) ;;
263 --- binutils-2.16/gas/configure.orig    2005-09-06 20:31:55.247276960 -0700
264 +++ binutils-2.16/gas/configure 2005-09-06 20:32:36.961901896 -0700
265 @@ -3409,7 +3409,7 @@
266    ;;
267  
268  # This must be Linux ELF.
269 -linux-gnu*)
270 +linux-gnu* | linux-uclibc*)
271    case $host_cpu in
272    alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
273      lt_cv_deplibs_check_method=pass_all ;;
274 @@ -4462,7 +4462,7 @@
275  _ACEOF
276  
277         ;;
278 -      ppc-*-linux-gnu*)
279 +      ppc-*-linux-gnu* | ppc-*-linux-uclibc*)
280         case "$endian" in
281           big)  ;;
282           *)    { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
283 --- binutils-2.16/gas/configure.tgt.orig        2005-09-06 20:32:55.695080700 -0700
284 +++ binutils-2.16/gas/configure.tgt     2005-09-06 20:35:59.482645723 -0700
285 @@ -100,7 +100,7 @@
286    alpha-*-*vms*)                       fmt=evax ;;
287    alpha-*-osf*)                                fmt=ecoff ;;
288    alpha-*-linuxecoff*)                 fmt=ecoff ;;
289 -  alpha-*-linux-gnu*)                  fmt=elf em=linux ;;
290 +  alpha-*-linux-gnu* | alpha-*-linux-uclibc*)  fmt=elf em=linux ;;
291    alpha-*-netbsd*)                     fmt=elf em=nbsd ;;
292    alpha-*-openbsd*)                    fmt=elf em=obsd ;;
293  
294 @@ -116,7 +116,7 @@
295    arm-*-conix*)                                fmt=elf ;;
296    arm-*-linux*aout*)                   fmt=aout em=linux ;;
297    arm-*-linux-gnueabi*)                        fmt=elf  em=armlinuxeabi ;;      
298 -  arm-*-linux-gnu*)                    fmt=elf  em=linux ;;
299 +  arm-*-linux-gnu* | arm-*-linux-uclibc*)      fmt=elf  em=linux ;;
300    arm-*-uclinux*)                      fmt=elf  em=linux ;;
301    arm-*-netbsdelf*)                    fmt=elf  em=nbsd ;;
302    arm-*-*n*bsd*)                       fmt=aout em=nbsd ;;
303 @@ -128,7 +128,7 @@
304  
305    avr-*-*)                             fmt=elf ;;
306  
307 -  cris-*-linux-gnu* | crisv32-*-linux-gnu*)
308 +  cris-*-linux-gnu* | crisv32-*-linux-gnu* | cris-*-linux-uclibc* | crisv32-*-linux-uclibc*)
309                                         fmt=multi bfd_gas=yes em=linux ;;
310    cris-*-* | crisv32-*-*)              fmt=multi bfd_gas=yes ;;
311  
312 @@ -192,7 +192,7 @@
313    i386-*-linux*aout*)                  fmt=aout em=linux ;;
314    i386-*-linux*oldld)                  fmt=aout em=linux ;;
315    i386-*-linux*coff*)                  fmt=coff em=linux ;;
316 -  i386-*-linux-gnu*)                   fmt=elf em=linux ;;
317 +  i386-*-linux-gnu* | i386-*-linux-uclibc*)    fmt=elf em=linux ;;
318    i386-*-lynxos*)                      fmt=elf em=lynx bfd_gas=yes ;;
319    i386-*-sysv[45]*)                    fmt=elf ;;
320    i386-*-solaris*)                     fmt=elf ;;
321 @@ -238,7 +238,7 @@
322  
323    ia64-*-elf*)                         fmt=elf ;;
324    ia64-*-aix*)                         fmt=elf em=ia64aix ;;
325 -  ia64-*-linux-gnu*)                   fmt=elf em=linux ;;
326 +  ia64-*-linux-gnu* | ia64-*-linux-uclibc*)    fmt=elf em=linux ;;
327    ia64-*-hpux*)                                fmt=elf em=hpux ;;
328    ia64-*-netbsd*)                      fmt=elf em=nbsd ;;
329  
330 @@ -265,7 +265,7 @@
331    m68k-*-rtems*)                       fmt=elf ;;
332    m68k-*-hpux*)                                fmt=hp300 em=hp300 ;;
333    m68k-*-linux*aout*)                  fmt=aout em=linux ;;
334 -  m68k-*-linux-gnu*)                   fmt=elf em=linux ;;
335 +  m68k-*-linux-gnu* | m68k-*-linux-uclibc*)    fmt=elf em=linux ;;
336    m68k-*-uclinux*)                     fmt=elf ;;
337    m68k-*-gnu*)                         fmt=elf ;;
338    m68k-*-netbsdelf*)                   fmt=elf em=nbsd ;;
339 @@ -332,7 +332,7 @@
340    ppc-*-beos*)                         fmt=coff ;;
341    ppc-*-*n*bsd* | ppc-*-elf*)          fmt=elf ;;
342    ppc-*-eabi* | ppc-*-sysv4*)          fmt=elf ;;
343 -  ppc-*-linux-gnu*)                    fmt=elf em=linux ;;
344 +  ppc-*-linux-gnu* | ppc-*-linux-uclibc*)      fmt=elf em=linux ;;
345    ppc-*-solaris*)                      fmt=elf ;;
346    ppc-*-rtems*)                                fmt=elf ;;
347    ppc-*-macos*)                                fmt=coff em=macos ;;
348 @@ -340,7 +340,7 @@
349    ppc-*-kaos*)                         fmt=elf ;;
350    ppc-*-lynxos*)                       fmt=elf em=lynx bfd_gas=yes ;;
351  
352 -  s390-*-linux-gnu*)                   fmt=elf em=linux ;;
353 +  s390-*-linux-gnu* | s390-*-linux-uclibc*)    fmt=elf em=linux ;;
354    s390-*-tpf*)                         fmt=elf ;;
355  
356    sh*-*-linux*)                                fmt=elf em=linux
357 @@ -369,7 +369,7 @@
358    sparc-*-aout | sparc*-*-vxworks*)    fmt=aout em=sparcaout ;;
359    sparc-*-coff)                                fmt=coff ;;
360    sparc-*-linux*aout*)                 fmt=aout em=linux ;;
361 -  sparc-*-linux-gnu*)                  fmt=elf em=linux ;;
362 +  sparc-*-linux-gnu* | sparc-*-linux-uclibc*)  fmt=elf em=linux ;;
363    sparc-fujitsu-none)                  fmt=aout ;;
364    sparc-*-elf)                         fmt=elf ;;
365    sparc-*-sysv4*)                      fmt=elf ;;
366 @@ -398,7 +398,7 @@
367    vax-*-netbsdelf*)                    fmt=elf em=nbsd ;;
368    vax-*-netbsd*)                       fmt=aout em=nbsd ;;
369    vax-*-bsd* | vax-*-ultrix*)          fmt=aout ;;
370 -  vax-*-linux-gnu*)                    fmt=elf em=linux bfd_gas=yes ;;
371 +  vax-*-linux-gnu* | vax-*-linux-uclibc*)      fmt=elf em=linux bfd_gas=yes ;;
372  
373    w65-*-*)                             fmt=coff ;;
374  
375 --- binutils-2.16/gprof/configure.orig  2005-09-06 20:36:04.850983531 -0700
376 +++ binutils-2.16/gprof/configure       2005-09-06 20:36:26.344336022 -0700
377 @@ -3407,7 +3407,7 @@
378    ;;
379  
380  # This must be Linux ELF.
381 -linux-gnu*)
382 +linux-gnu* | linux-uclibc*)
383    case $host_cpu in
384    alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
385      lt_cv_deplibs_check_method=pass_all ;;
386 --- binutils-2.16/ld/configure.host.orig        2005-09-06 20:37:46.085353808 -0700
387 +++ binutils-2.16/ld/configure.host     2005-09-06 20:40:03.381993341 -0700
388 @@ -83,7 +83,7 @@
389    HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,ld\[^ \]\*,ld-linux,g"`
390    ;;
391  
392 -arm*-*-linux-gnu*)
393 +arm*-*-linux-gnu* | arm*-*-linux-uclibc*)
394    HOSTING_CRT0='-p '`echo "$HOSTING_CRT0" | sed -e "s,ld\[^ \]\*,ld-linux,g"`
395    ;;
396  
397 @@ -141,7 +141,7 @@
398    HOSTING_LIBS="$HOSTING_LIBS"' -lcygwin -L/usr/lib/w32api -luser32 -lkernel32 -ladvapi32 -lshell32 `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi`'
399    ;;
400  
401 -ia64-*-linux-gnu*)
402 +ia64-*-linux-gnu* | ia64-*-linux-uclibc*)
403    HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,ld\[^ \]*\*,ld-linux-ia64,g"`
404    ;;
405  
406 @@ -155,11 +155,11 @@
407    HOSTING_LIBS='-L/usr/lib32 '"$HOSTING_LIBS"' `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o ; else ${CC} -print-file-name=crtend.o; fi` /usr/lib32/crtn.o -init __do_global_ctors -fini __do_global_dtors'
408    ;;
409  
410 -mips*-*-linux-gnu*)
411 +mips*-*-linux-gnu* | mips*-*-linux-uclibc*)
412    HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld.so.1,"`
413    ;;
414  
415 -m68*-*-linux-gnu*)
416 +m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
417    HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld.so.1,"`
418    ;;
419  
420 @@ -183,19 +183,19 @@
421    HOSTING_LIBS="$HOSTING_LIBS"' `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} -print-file-name=crtend.o; fi`'
422    ;;
423  
424 -powerpc64*-*-linux-gnu*)
425 +powerpc64*-*-linux-gnu* | powerpc64*-*-linux-uclibc*)
426    HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib64/ld64.so.1,"`
427    ;;
428  
429 -powerpc*-*-linux-gnu*)
430 +powerpc*-*-linux-gnu* | powerpc*-*-linux-uclibc*)
431    HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld.so.1,"`
432    ;;
433  
434 -s390x-*-linux-gnu*)
435 +s390x-*-linux-gnu* | s390x-*-linux-uclibc*)
436    HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld64.so.1,"`
437    ;;
438  
439 -s390-*-linux-gnu*)
440 +s390-*-linux-gnu* | s390-*-linux-uclibc*)
441    HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld.so.1,"`
442    ;;
443  
444 @@ -209,15 +209,15 @@
445    HOSTING_LIBS="$HOSTING_LIBS"' `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} -print-file-name=crtend.o; fi` `if [ -f ../gcc/crtn.o ]; then echo ../gcc/crtn.o; else ${CC} -print-file-name=crtn.o; fi`'
446    ;;
447  
448 -sparc-*-linux-gnu*)
449 +sparc-*-linux-gnu* | sparc-*-linux-uclibc*)
450    HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld-linux.so.2,"`
451    ;;
452  
453 -sparc64-*-linux-gnu*)
454 +sparc64-*-linux-gnu* | sparc64-*-linux-uclibc*)
455    HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib64/ld-linux.so.2,"`
456    ;;
457  
458 -x86_64-*-linux-gnu*)
459 +x86_64-*-linux-gnu* | x86_64-*-linux-uclibc*)
460    HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib64/ld-linux-x86-64.so.2,"`
461    ;;
462  
463 --- binutils-2.16/ld/configure.orig     2005-09-06 20:37:34.700637413 -0700
464 +++ binutils-2.16/ld/configure  2005-09-06 20:37:46.013349277 -0700
465 @@ -1568,7 +1568,7 @@
466    ;;
467  
468  # This must be Linux ELF.
469 -linux-gnu*)
470 +linux-gnu* | linux-uclibc*)
471    case $host_cpu in
472    alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
473      lt_cv_deplibs_check_method=pass_all ;;
474 --- binutils-2.16/ld/configure.tgt.orig 2005-09-06 20:40:03.413995355 -0700
475 +++ binutils-2.16/ld/configure.tgt      2005-09-06 20:45:48.111685813 -0700
476 @@ -30,7 +30,7 @@
477  cris-*-*aout*)         targ_emul=crisaout
478                         targ_extra_emuls="criself crislinux"
479                         targ_extra_libpath=$targ_extra_emuls ;;
480 -cris-*-linux-gnu* | cris-*-linux-gnu*)
481 +cris-*-linux-gnu* | cris-*-linux-gnu* | cris-*-linux-uclibc* | cris-*-linux-uclibc*)
482                         targ_emul=crislinux ;;
483  cris-*-* | crisv32-*-*)        targ_emul=criself
484                         targ_extra_emuls="crisaout crislinux"
485 @@ -62,14 +62,14 @@
486                         tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/aout//'`
487                         tdir_sun4=sparc-sun-sunos4
488                         ;;
489 -sparc64-*-linux-gnu*)  targ_emul=elf64_sparc
490 +sparc64-*-linux-gnu* | sparc64-*-linux-uclibc*)        targ_emul=elf64_sparc
491                         targ_extra_emuls="elf32_sparc sparclinux sun4"
492                         targ_extra_libpath=elf32_sparc
493                         tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
494                         tdir_sparclinux=${tdir_elf32_sparc}aout
495                         tdir_sun4=sparc-sun-sunos4
496                         ;;
497 -sparc*-*-linux-gnu*)   targ_emul=elf32_sparc
498 +sparc*-*-linux-gnu* | sparc*-*-linux-uclibc*)  targ_emul=elf32_sparc
499                         targ_extra_emuls="sparclinux elf64_sparc sun4"
500                         targ_extra_libpath=elf64_sparc
501                         tdir_sparclinux=${targ_alias}aout
502 @@ -119,8 +119,8 @@
503  ia64-*-aix*)           targ_emul=elf64_aix ;;
504  m32r*le-*-elf*)         targ_emul=m32rlelf ;;
505  m32r*-*-elf*)           targ_emul=m32relf ;;
506 -m32r*le-*-linux-gnu*)   targ_emul=m32rlelf_linux ;;
507 -m32r*-*-linux-gnu*)     targ_emul=m32relf_linux ;;
508 +m32r*le-*-linux-gnu* | m32r*le-*-linux-uclibc*)   targ_emul=m32rlelf_linux ;;
509 +m32r*-*-linux-gnu* | m32r*-*-linux-uclibc*)     targ_emul=m32relf_linux ;;
510  m68hc11-*-*|m6811-*-*) targ_emul=m68hc11elf 
511                         targ_extra_emuls="m68hc11elfb m68hc12elf m68hc12elfb" ;;
512  m68hc12-*-*|m6812-*-*) targ_emul=m68hc12elf 
513 @@ -131,7 +131,7 @@
514  m68*-apple-aux*)       targ_emul=m68kaux ;;
515  maxq-*-coff)            targ_emul=maxqcoff;;
516  *-tandem-none)         targ_emul=st2000 ;;
517 -i370-*-elf* | i370-*-linux-gnu*) targ_emul=elf32i370 ;;
518 +i370-*-elf* | i370-*-linux-gnu* | i370-*-linux-uclibc*) targ_emul=elf32i370 ;;
519  i[3-7]86-*-nto-qnx*)   targ_emul=i386nto ;;
520  i[3-7]86-*-vsta)       targ_emul=vsta ;;
521  i[3-7]86-go32-rtems*)  targ_emul=i386go32 ;;
522 @@ -155,14 +155,14 @@
523                         tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'`
524                         ;;
525  i[3-7]86-*-linux*oldld)        targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
526 -i[3-7]86-*-linux-gnu*) targ_emul=elf_i386
527 +i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)      targ_emul=elf_i386
528                         targ_extra_emuls=i386linux
529                         if test x${want64} = xtrue; then
530                           targ_extra_emuls="$targ_extra_emuls elf_x86_64"
531                         fi
532                         tdir_i386linux=${targ_alias}aout
533                         ;;
534 -x86_64-*-linux-gnu*)   targ_emul=elf_x86_64
535 +x86_64-*-linux-gnu* | x86_64-*-linux-uclibc*)  targ_emul=elf_x86_64
536                         targ_extra_emuls="elf_i386 i386linux"
537                         targ_extra_libpath=elf_i386
538                         tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'`
539 @@ -262,13 +262,14 @@
540  arm-*-kaos*)           targ_emul=armelf ;;
541  arm9e-*-elf)           targ_emul=armelf ;;
542  arm*b-*-linux-gnueabi) targ_emul=armelfb_linux_eabi ;;
543 -arm*b-*-linux-gnu*)    targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;;
544 +arm*b-*-linux-gnu* | arm*b-*-linux-uclibc*)    targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;;
545  arm*-*-linux-gnueabi)  targ_emul=armelf_linux_eabi ;;
546 -arm*-*-linux-gnu*)     targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
547 +arm*-*-linux-gnu* | arm*-*-linux-uclibc*)      targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
548  arm*-*-uclinux*)       targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
549  arm-*-vxworks)         targ_emul=armelf_vxworks ;;
550  arm*-*-conix*)         targ_emul=armelf ;;
551 -thumb-*-linux-gnu* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
552 +thumb-*-linux-gnu* | thumb-*-linux-uclibc* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
553 +thumbb-*-linux-gnu* | thumbb-*-linux-uclibc* | thumbb-*-uclinux*)      targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;;
554  strongarm-*-coff)      targ_emul=armcoff ;;
555  strongarm-*-elf)       targ_emul=armelf ;;
556  strongarm-*-kaos*)     targ_emul=armelf ;;
557 @@ -372,7 +373,7 @@
558                         targ_extra_emuls=m68kelf
559                         tdir_m68kelf=`echo ${targ_alias} | sed -e 's/aout//'`
560                         ;;
561 -m68k-*-linux-gnu*)     targ_emul=m68kelf
562 +m68k-*-linux-gnu* | m68k-*-linux-uclibc*)      targ_emul=m68kelf
563                         targ_extra_emuls=m68klinux
564                         tdir_m68klinux=`echo ${targ_alias} | sed -e 's/linux/linuxaout/'`
565                         ;;
566 @@ -388,9 +389,9 @@
567  m68*-*-psos*)          targ_emul=m68kpsos ;;
568  m68*-*-rtemscoff*)     targ_emul=m68kcoff ;;
569  m68*-*-rtems*)         targ_emul=m68kelf ;;
570 -hppa*64*-*-linux-gnu*) targ_emul=hppa64linux ;;
571 +hppa*64*-*-linux-gnu* | hppa*64*-*-linux-uclibc*)      targ_emul=hppa64linux ;;
572  hppa*64*-*)            targ_emul=elf64hppa ;;
573 -hppa*-*-linux-gnu*)    targ_emul=hppalinux ;;
574 +hppa*-*-linux-gnu* | hppa*-*-linux-uclibc*)    targ_emul=hppalinux ;;
575  hppa*-*-*elf*)         targ_emul=hppaelf ;;
576  hppa*-*-lites*)                targ_emul=hppaelf ;;
577  hppa*-*-netbsd*)       targ_emul=hppanbsd ;;
578 @@ -402,7 +403,7 @@
579  vax-*-netbsdaout* | vax-*-netbsd*)
580                         targ_emul=vaxnbsd
581                         targ_extra_emuls=elf32vax ;;
582 -vax-*-linux-gnu*)      targ_emul=elf32vax ;;
583 +vax-*-linux-gnu* | vax-*-linux-uclibc*)        targ_emul=elf32vax ;;
584  mips*-*-pe)            targ_emul=mipspe ;
585                         targ_extra_ofiles="deffilep.o pe-dll.o" ;;
586  mips*-dec-ultrix*)     targ_emul=mipslit ;;
587 @@ -436,18 +437,18 @@
588  mips*-*-vxworks*)      targ_emul=elf32ebmip
589                         targ_extra_emuls="elf32elmip" ;;
590  mips*-*-windiss)       targ_emul=elf32mipswindiss ;;
591 -mips64*el-*-linux-gnu*)        targ_emul=elf32ltsmipn32
592 +mips64*el-*-linux-gnu* | mips64*el-*-linux-uclibc*)    targ_emul=elf32ltsmipn32
593                         targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
594                         targ_extra_libpath="elf32ltsmip elf64ltsmip"
595                         ;;
596 -mips64*-*-linux-gnu*)  targ_emul=elf32btsmipn32
597 +mips64*-*-linux-gnu* | mips64*-*-linux-uclibc*)        targ_emul=elf32btsmipn32
598                         targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
599                         targ_extra_libpath="elf32btsmip elf64btsmip"
600                         ;;
601 -mips*el-*-linux-gnu*)  targ_emul=elf32ltsmip
602 +mips*el-*-linux-gnu* | mips*el-*-linux-uclibc*)        targ_emul=elf32ltsmip
603                         targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
604                         ;;
605 -mips*-*-linux-gnu*)    targ_emul=elf32btsmip
606 +mips*-*-linux-gnu* | mips*-*-linux-uclibc*)    targ_emul=elf32btsmip
607                         targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip"
608                         ;;
609  mips*-*-lnews*)                targ_emul=mipslnews ;;
610 @@ -467,7 +468,7 @@
611  alpha*-*-linuxecoff*)  targ_emul=alpha targ_extra_emuls=elf64alpha
612                         tdir_elf64alpha=`echo ${targ_alias} | sed -e 's/ecoff//'`
613                         ;;
614 -alpha*-*-linux-gnu*)   targ_emul=elf64alpha targ_extra_emuls=alpha
615 +alpha*-*-linux-gnu* | alpha*-*-linux-uclibc*)  targ_emul=elf64alpha targ_extra_emuls=alpha
616                         tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'`
617                         ;;
618  alpha*-*-osf*)         targ_emul=alpha ;;
619 --- binutils-2.16/ld/emultempl/elf32.em.orig    2005-09-06 20:45:48.247694371 -0700
620 +++ binutils-2.16/ld/emultempl/elf32.em 2005-09-06 20:46:39.158898011 -0700
621 @@ -65,7 +65,7 @@
622  
623  if [ "x${USE_LIBPATH}" = xyes ] ; then
624    case ${target} in
625 -    *-*-linux-gnu*)
626 +    *-*-linux-gnu* | *-*-linux-uclibc*)
627    cat >>e${EMULATION_NAME}.c <<EOF
628  #ifdef HAVE_GLOB
629  #include <glob.h>
630 @@ -350,7 +350,7 @@
631  
632  EOF
633  case ${target} in
634 -  *-*-linux-gnu*)
635 +  *-*-linux-gnu* | *-*-linux-uclibc*)
636      cat >>e${EMULATION_NAME}.c <<EOF
637           {
638             struct bfd_link_needed_list *l;
639 @@ -522,7 +522,7 @@
640  
641  EOF
642    case ${target} in
643 -    *-*-linux-gnu*)
644 +    *-*-linux-gnu* | *-*-linux-uclibc*)
645        cat >>e${EMULATION_NAME}.c <<EOF
646  /* For a native linker, check the file /etc/ld.so.conf for directories
647     in which we may find shared libraries.  /etc/ld.so.conf is really
648 @@ -932,7 +932,7 @@
649  EOF
650  if [ "x${USE_LIBPATH}" = xyes ] ; then
651    case ${target} in
652 -    *-*-linux-gnu*)
653 +    *-*-linux-gnu* | *-*-linux-uclibc*)
654        cat >>e${EMULATION_NAME}.c <<EOF
655           if (gld${EMULATION_NAME}_check_ld_so_conf (l->name, force))
656             break;
657 --- binutils-2.16/libtool.m4.orig       2005-09-06 20:46:55.131903129 -0700
658 +++ binutils-2.16/libtool.m4    2005-09-06 20:47:07.364672889 -0700
659 @@ -634,7 +634,7 @@
660    ;;
661  
662  # This must be Linux ELF.
663 -linux-gnu*)
664 +linux-gnu* | linux-uclibc*)
665    case $host_cpu in
666    alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
667      lt_cv_deplibs_check_method=pass_all ;;
668 --- binutils-2.16/ltconfig.orig 2005-09-06 20:47:13.965088227 -0700
669 +++ binutils-2.16/ltconfig      2005-09-06 20:49:12.944575134 -0700
670 @@ -1247,7 +1247,7 @@
671    ;;
672  
673  # This must be Linux ELF.
674 -linux-gnu*)
675 +linux-gnu* | linux-uclibc*)
676    version_type=linux
677    need_lib_prefix=no
678    need_version=no
679 --- binutils-2.16/ltmain.sh.orig        2005-09-06 20:49:12.980577399 -0700
680 +++ binutils-2.16/ltmain.sh     2005-09-06 20:50:15.180491393 -0700
681 @@ -2600,7 +2600,7 @@
682           versuffix="$major.$revision"
683           ;;
684  
685 -       linux)
686 +       linux | linux-uclibc)
687           major=.`expr $current - $age`
688           versuffix="$major.$age.$revision"
689           ;;
690 --- binutils-2.16/opcodes/configure.orig        2005-09-06 20:50:15.220493910 -0700
691 +++ binutils-2.16/opcodes/configure     2005-09-06 20:50:38.053930728 -0700
692 @@ -3576,7 +3576,7 @@
693    ;;
694  
695  # This must be Linux ELF.
696 -linux-gnu*)
697 +linux-gnu* | linux-uclibc*)
698    case $host_cpu in
699    alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
700      lt_cv_deplibs_check_method=pass_all ;;