move platform specific base-files into target/linux/<targetname>
[openwrt.git] / toolchain / gdb / patches / 100-uclibc-conf.patch
1 --- gdb-6.3/bfd/config.bfd.orig Fri Oct 15 07:47:11 2004
2 +++ gdb-6.3/bfd/config.bfd Mon Feb 28 00:04:43 2005
3 @@ -129,7 +129,7 @@
4 targ_defvec=ecoffalpha_little_vec
5 targ_selvecs=bfd_elf64_alpha_vec
6 ;;
7 - alpha*-*-linux-gnu* | alpha*-*-elf*)
8 + alpha*-*-linux-* | alpha*-*-elf*)
9 targ_defvec=bfd_elf64_alpha_vec
10 targ_selvecs=ecoffalpha_little_vec
11 ;;
12 @@ -139,7 +139,7 @@
13 alpha*-*-*)
14 targ_defvec=ecoffalpha_little_vec
15 ;;
16 - ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
17 + ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
18 targ_defvec=bfd_elf64_ia64_little_vec
19 targ_selvecs="bfd_elf64_ia64_big_vec bfd_efi_app_ia64_vec"
20 ;;
21 @@ -216,7 +216,7 @@
22 targ_defvec=bfd_elf32_littlearm_vec
23 targ_selvecs=bfd_elf32_bigarm_vec
24 ;;
25 - armeb-*-elf | arm*b-*-linux-gnu*)
26 + armeb-*-elf | arm*b-*-linux-*)
27 targ_defvec=bfd_elf32_bigarm_vec
28 targ_selvecs=bfd_elf32_littlearm_vec
29 ;;
30 @@ -224,7 +224,7 @@
31 targ_defvec=bfd_elf32_littlearm_vec
32 targ_selvecs=bfd_elf32_bigarm_vec
33 ;;
34 - arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-conix* | \
35 + arm-*-elf | arm-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
36 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | arm-*-vxworks | \
37 arm*-*-eabi* )
38 targ_defvec=bfd_elf32_littlearm_vec
39 @@ -378,7 +378,7 @@
40 ;;
41
42 #ifdef BFD64
43 - hppa*64*-*-linux-gnu*)
44 + hppa*64*-*-linux-*)
45 targ_defvec=bfd_elf64_hppa_linux_vec
46 targ_selvecs=bfd_elf64_hppa_vec
47 ;;
48 @@ -389,7 +389,7 @@
49 ;;
50 #endif
51
52 - hppa*-*-linux-gnu*)
53 + hppa*-*-linux-*)
54 targ_defvec=bfd_elf32_hppa_linux_vec
55 targ_selvecs=bfd_elf32_hppa_vec
56 ;;
57 @@ -522,7 +522,7 @@
58 targ_selvecs=bfd_elf32_i386_vec
59 targ_underscore=yes
60 ;;
61 - i[3-7]86-*-linux-gnu*)
62 + i[3-7]86-*-linux-*)
63 targ_defvec=bfd_elf32_i386_vec
64 targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec"
65 targ64_selvecs=bfd_elf64_x86_64_vec
66 @@ -536,7 +536,7 @@
67 targ_defvec=bfd_elf64_x86_64_vec
68 targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec bfd_efi_app_ia32_vec"
69 ;;
70 - x86_64-*-linux-gnu*)
71 + x86_64-*-linux-*)
72 targ_defvec=bfd_elf64_x86_64_vec
73 targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec"
74 ;;
75 @@ -706,7 +706,7 @@
76 targ_defvec=hp300hpux_vec
77 targ_underscore=yes
78 ;;
79 - m68*-*-linux*aout*)
80 + m68*-*-linux*aout* | m68*-*-linux-uclibc*)
81 targ_defvec=m68klinux_vec
82 targ_selvecs=bfd_elf32_m68k_vec
83 targ_underscore=yes
84 @@ -987,7 +987,7 @@
85 ;;
86 #endif
87 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
88 - powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems* | \
89 + powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \
90 powerpc-*-chorus* | powerpc-*-vxworks* | powerpc-*-windiss*)
91 targ_defvec=bfd_elf32_powerpc_vec
92 targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
93 @@ -1024,7 +1024,7 @@
94 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
95 ;;
96 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
97 - powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-vxworks* |\
98 + powerpcle-*-solaris2* | powerpcle-*-linux-* | powerpcle-*-vxworks* |\
99 powerpcle-*-rtems*)
100 targ_defvec=bfd_elf32_powerpcle_vec
101 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
102 @@ -1192,7 +1192,7 @@
103 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
104 targ_underscore=yes
105 ;;
106 - sparc-*-linux-gnu*)
107 + sparc-*-linux-*)
108 targ_defvec=bfd_elf32_sparc_vec
109 targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec"
110 ;;
111 @@ -1239,7 +1239,7 @@
112 targ_defvec=sunos_big_vec
113 targ_underscore=yes
114 ;;
115 - sparc64-*-linux-gnu*)
116 + sparc64-*-linux-*)
117 targ_defvec=bfd_elf64_sparc_vec
118 targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec"
119 ;;
120 @@ -1308,7 +1308,7 @@
121 targ_underscore=yes
122 ;;
123
124 - vax-*-linux-gnu*)
125 + vax-*-linux-*)
126 targ_defvec=bfd_elf32_vax_vec
127 ;;
128
129 --- gdb-6.3/bfd/configure.orig Fri Oct 8 16:53:56 2004
130 +++ gdb-6.3/bfd/configure Sun Feb 27 18:32:58 2005
131 @@ -3583,6 +3583,11 @@
132 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
133 ;;
134
135 +linux-uclibc*)
136 + lt_cv_deplibs_check_method=pass_all
137 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
138 + ;;
139 +
140 netbsd* | knetbsd*-gnu)
141 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
142 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
143 @@ -9914,7 +9919,7 @@
144 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
145 COREFILE=''
146 ;;
147 - alpha*-*-linux-gnu*)
148 + alpha*-*-linux-*)
149 COREFILE=trad-core.lo
150 TRAD_HEADER='"hosts/alphalinux.h"'
151 ;;
152 @@ -9978,7 +9983,7 @@
153 COREFILE=trad-core.lo
154 TRAD_HEADER='"hosts/i386mach3.h"'
155 ;;
156 - i[3-7]86-*-linux-gnu*)
157 + i[3-7]86-*-linux-*)
158 COREFILE=trad-core.lo
159 TRAD_HEADER='"hosts/i386linux.h"'
160 ;;
161 @@ -10016,7 +10021,7 @@
162 COREFILE=trad-core.lo
163 TRAD_HEADER='"hosts/hp300bsd.h"'
164 ;;
165 - m68*-*-linux-gnu*)
166 + m68*-*-linux-*)
167 COREFILE=trad-core.lo
168 TRAD_HEADER='"hosts/m68klinux.h"'
169 ;;
170 @@ -10150,7 +10155,7 @@
171 COREFILE=trad-core.lo
172 TRAD_HEADER='"hosts/vaxult2.h"'
173 ;;
174 - vax-*-linux-gnu*)
175 + vax-*-linux-*)
176 COREFILE=trad-core.lo
177 TRAD_HEADER='"hosts/vaxlinux.h"'
178 ;;
179 --- gdb-6.3/bfd/configure.in.orig Fri Oct 8 16:53:59 2004
180 +++ gdb-6.3/bfd/configure.in Sun Feb 27 18:14:41 2005
181 @@ -163,7 +163,7 @@
182 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
183 COREFILE=''
184 ;;
185 - alpha*-*-linux-gnu*)
186 + alpha*-*-linux-*)
187 COREFILE=trad-core.lo
188 TRAD_HEADER='"hosts/alphalinux.h"'
189 ;;
190 @@ -248,7 +248,7 @@
191 TRAD_HEADER='"hosts/i386mach3.h"'
192 ;;
193 changequote(,)dnl
194 - i[3-7]86-*-linux-gnu*)
195 + i[3-7]86-*-linux-*)
196 changequote([,])dnl
197 COREFILE=trad-core.lo
198 TRAD_HEADER='"hosts/i386linux.h"'
199 @@ -289,7 +289,7 @@
200 COREFILE=trad-core.lo
201 TRAD_HEADER='"hosts/hp300bsd.h"'
202 ;;
203 - m68*-*-linux-gnu*)
204 + m68*-*-linux-*)
205 COREFILE=trad-core.lo
206 TRAD_HEADER='"hosts/m68klinux.h"'
207 ;;
208 @@ -375,7 +375,7 @@
209 COREFILE=trad-core.lo
210 TRAD_HEADER='"hosts/vaxult2.h"'
211 ;;
212 - vax-*-linux-gnu*)
213 + vax-*-linux-*)
214 COREFILE=trad-core.lo
215 TRAD_HEADER='"hosts/vaxlinux.h"'
216 ;;
217 --- gdb-6.3/libtool.m4.orig Wed Jul 21 21:21:41 2004
218 +++ gdb-6.3/libtool.m4 Mon Feb 28 00:08:11 2005
219 @@ -653,6 +653,11 @@
220 fi
221 ;;
222
223 +linux-uclibc*)
224 + lt_cv_deplibs_check_method=pass_all
225 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
226 + ;;
227 +
228 newsos6)
229 [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
230 lt_cv_file_magic_cmd=/usr/bin/file
231 --- gdb-6.3/ltconfig.orig Tue Oct 5 15:34:42 2004
232 +++ gdb-6.3/ltconfig Sun Feb 27 18:14:41 2005
233 @@ -602,7 +602,7 @@
234
235 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
236 case $host_os in
237 -linux-gnu*) ;;
238 +linux-gnu*|linux-uclibc*) ;;
239 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
240 esac
241
242 @@ -1270,6 +1270,24 @@
243 dynamic_linker='GNU/Linux ld.so'
244 ;;
245
246 +linux-uclibc*)
247 + version_type=linux
248 + need_lib_prefix=no
249 + need_version=no
250 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
251 + soname_spec='${libname}${release}.so$major'
252 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
253 + shlibpath_var=LD_LIBRARY_PATH
254 + shlibpath_overrides_runpath=no
255 + # This implies no fast_install, which is unacceptable.
256 + # Some rework will be needed to allow for fast_install
257 + # before this can be enabled.
258 + # Note: copied from linux-gnu, and may not be appropriate.
259 + hardcode_into_libs=yes
260 + # Assume using the uClibc dynamic linker.
261 + dynamic_linker="uClibc ld.so"
262 + ;;
263 +
264 netbsd*)
265 need_lib_prefix=no
266 need_version=no
267 --- gdb-6.3/opcodes/configure.orig Fri Sep 17 08:13:38 2004
268 +++ gdb-6.3/opcodes/configure Mon Feb 28 00:09:42 2005
269 @@ -3595,6 +3595,11 @@
270 fi
271 ;;
272
273 +linux-uclibc*)
274 + lt_cv_deplibs_check_method=pass_all
275 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
276 + ;;
277 +
278 newsos6)
279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
280 lt_cv_file_magic_cmd=/usr/bin/file
This page took 0.063926 seconds and 5 git commands to generate.