summaryrefslogtreecommitdiffstats
path: root/meta/packages/gdb/files/uclibc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gdb/files/uclibc.patch')
-rw-r--r--meta/packages/gdb/files/uclibc.patch194
1 files changed, 194 insertions, 0 deletions
diff --git a/meta/packages/gdb/files/uclibc.patch b/meta/packages/gdb/files/uclibc.patch
new file mode 100644
index 0000000000..3d6b7ba187
--- /dev/null
+++ b/meta/packages/gdb/files/uclibc.patch
@@ -0,0 +1,194 @@
1--- binutils-2.15.91.0.1/bfd/config.bfd~binutils-2.15.90.0.3-uclibc-100-conf
2+++ binutils-2.15.91.0.1/bfd/config.bfd
3@@ -128,7 +128,7 @@
4 targ_defvec=ecoffalpha_little_vec
5 targ_selvecs=bfd_elf64_alpha_vec
6 ;;
7- alpha*-*-linux-gnu* | alpha*-*-elf*)
8+ alpha*-*-linux-gnu* | alpha*-*-linux-uclibc* | alpha*-*-elf*)
9 targ_defvec=bfd_elf64_alpha_vec
10 targ_selvecs=ecoffalpha_little_vec
11 ;;
12@@ -138,7 +138,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-gnu* | ia64*-*-elf* | ia64*-*-linux-uclibc* | 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@@ -215,7 +215,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-gnu* | arm*b-*-linux-uclibc*)
27 targ_defvec=bfd_elf32_bigarm_vec
28 targ_selvecs=bfd_elf32_littlearm_vec
29 ;;
30@@ -223,8 +223,8 @@
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*-*-uclinux* | arm-*-kfreebsd*-gnu | arm-*-vxworks)
36+ arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-linux-uclibc* | \
37+ arm*-*-conix* | arm*-*-uclinux* | arm-*-kfreebsd*-gnu | arm-*-vxworks)
38 targ_defvec=bfd_elf32_littlearm_vec
39 targ_selvecs=bfd_elf32_bigarm_vec
40 ;;
41@@ -367,7 +367,7 @@
42 ;;
43
44 #ifdef BFD64
45- hppa*64*-*-linux-gnu*)
46+ hppa*64*-*-linux-gnu* | hppa*64*-*-linux-uclibc*)
47 targ_defvec=bfd_elf64_hppa_linux_vec
48 targ_selvecs=bfd_elf64_hppa_vec
49 ;;
50@@ -378,7 +378,7 @@
51 ;;
52 #endif
53
54- hppa*-*-linux-gnu* | hppa*-*-netbsd*)
55+ hppa*-*-linux-gnu* | hppa*-*-netbsd* | hppa*-*-linux-uclibc*)
56 targ_defvec=bfd_elf32_hppa_linux_vec
57 targ_selvecs=bfd_elf32_hppa_vec
58 ;;
59@@ -501,7 +501,7 @@
60 targ_selvecs=bfd_elf32_i386_vec
61 targ_underscore=yes
62 ;;
63- i[3-7]86-*-linux-gnu*)
64+ i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
65 targ_defvec=bfd_elf32_i386_vec
66 targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec"
67 targ64_selvecs=bfd_elf64_x86_64_vec
68@@ -515,7 +515,7 @@
69 targ_defvec=bfd_elf64_x86_64_vec
70 targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec bfd_efi_app_ia32_vec"
71 ;;
72- x86_64-*-linux-gnu*)
73+ x86_64-*-linux-gnu* | x86_64-*-linux-uclibc*)
74 targ_defvec=bfd_elf64_x86_64_vec
75 targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec"
76 ;;
77@@ -690,7 +690,7 @@
78 targ_selvecs=bfd_elf32_m68k_vec
79 targ_underscore=yes
80 ;;
81- m68*-*-linux-gnu*)
82+ m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
83 targ_defvec=bfd_elf32_m68k_vec
84 targ_selvecs=m68klinux_vec
85 ;;
86@@ -966,7 +966,8 @@
87 ;;
88 #endif
89 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
90- powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems* | \
91+ powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-linux-uclibc* | \
92+ powerpc-*-rtems* | \
93 powerpc-*-chorus* | powerpc-*-vxworks* | powerpc-*-windiss*)
94 targ_defvec=bfd_elf32_powerpc_vec
95 targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
96@@ -1003,8 +1004,8 @@
97 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
98 ;;
99 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
100- powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-vxworks* |\
101- powerpcle-*-rtems*)
102+ powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-linux-uclibc* |\
103+ powerpcle-*-vxworks* | powerpcle-*-rtems*)
104 targ_defvec=bfd_elf32_powerpcle_vec
105 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
106 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
107@@ -1165,7 +1166,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@@ -1212,7 +1213,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--- binutils-2.15.91.0.1/bfd/configure~binutils-2.15.90.0.3-uclibc-100-conf
126+++ binutils-2.15.91.0.1/bfd/configure
127@@ -1687,6 +1687,11 @@
128 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
129 ;;
130
131+linux-uclibc*)
132+ lt_cv_deplibs_check_method=pass_all
133+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
134+ ;;
135+
136 netbsd*)
137 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
138 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
139@@ -5266,7 +5271,7 @@
140 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
141 COREFILE=''
142 ;;
143- alpha*-*-linux-gnu*)
144+ alpha*-*-linux-gnu* | alpha*-*-linux-uclibc*)
145 COREFILE=trad-core.lo
146 TRAD_HEADER='"hosts/alphalinux.h"'
147 ;;
148@@ -5326,7 +5331,7 @@
149 COREFILE=trad-core.lo
150 TRAD_HEADER='"hosts/i386mach3.h"'
151 ;;
152- i[3-7]86-*-linux-gnu*)
153+ i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
154 COREFILE=trad-core.lo
155 TRAD_HEADER='"hosts/i386linux.h"'
156 ;;
157@@ -5364,7 +5369,7 @@
158 COREFILE=trad-core.lo
159 TRAD_HEADER='"hosts/hp300bsd.h"'
160 ;;
161- m68*-*-linux-gnu*)
162+ m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
163 COREFILE=trad-core.lo
164 TRAD_HEADER='"hosts/m68klinux.h"'
165 ;;
166--- binutils-2.15.91.0.1/bfd/configure.in~binutils-2.15.90.0.3-uclibc-100-conf
167+++ binutils-2.15.91.0.1/bfd/configure.in
168@@ -164,7 +164,7 @@
169 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
170 COREFILE=''
171 ;;
172- alpha*-*-linux-gnu*)
173+ alpha*-*-linux-gnu* | alpha*-*-linux-uclibc*)
174 COREFILE=trad-core.lo
175 TRAD_HEADER='"hosts/alphalinux.h"'
176 ;;
177@@ -245,7 +245,7 @@
178 TRAD_HEADER='"hosts/i386mach3.h"'
179 ;;
180 changequote(,)dnl
181- i[3-7]86-*-linux-gnu*)
182+ i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
183 changequote([,])dnl
184 COREFILE=trad-core.lo
185 TRAD_HEADER='"hosts/i386linux.h"'
186@@ -286,7 +286,7 @@
187 COREFILE=trad-core.lo
188 TRAD_HEADER='"hosts/hp300bsd.h"'
189 ;;
190- m68*-*-linux-gnu*)
191+ m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
192 COREFILE=trad-core.lo
193 TRAD_HEADER='"hosts/m68klinux.h"'
194 ;;