Contents of /trunk/gdb/patches/gdb-6.3-uclibc.patch
Parent Directory | Revision Log
Revision 144 -
(show annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 6656 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 6656 byte(s)
-import
1 | diff -Nrup gdb-6.3.orig/bfd/config.bfd gdb-6.3/bfd/config.bfd |
2 | --- gdb-6.3.orig/bfd/config.bfd 2004-10-15 01:47:11.000000000 -0400 |
3 | +++ gdb-6.3/bfd/config.bfd 2004-11-27 20:15:57.000000000 -0500 |
4 | @@ -129,7 +129,7 @@ case "${targ}" in |
5 | targ_defvec=ecoffalpha_little_vec |
6 | targ_selvecs=bfd_elf64_alpha_vec |
7 | ;; |
8 | - alpha*-*-linux-gnu* | alpha*-*-elf*) |
9 | + alpha*-*-linux-gnu* | alpha*-*-linux-uclibc* | alpha*-*-elf*) |
10 | targ_defvec=bfd_elf64_alpha_vec |
11 | targ_selvecs=ecoffalpha_little_vec |
12 | ;; |
13 | @@ -139,7 +139,7 @@ case "${targ}" in |
14 | alpha*-*-*) |
15 | targ_defvec=ecoffalpha_little_vec |
16 | ;; |
17 | - ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu) |
18 | + ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu | ia64*-*-linux-uclibc*) |
19 | targ_defvec=bfd_elf64_ia64_little_vec |
20 | targ_selvecs="bfd_elf64_ia64_big_vec bfd_efi_app_ia64_vec" |
21 | ;; |
22 | @@ -216,7 +216,7 @@ case "${targ}" in |
23 | targ_defvec=bfd_elf32_littlearm_vec |
24 | targ_selvecs=bfd_elf32_bigarm_vec |
25 | ;; |
26 | - armeb-*-elf | arm*b-*-linux-gnu*) |
27 | + armeb-*-elf | arm*b-*-linux-gnu* | arm*b-*-linux-uclibc*) |
28 | targ_defvec=bfd_elf32_bigarm_vec |
29 | targ_selvecs=bfd_elf32_littlearm_vec |
30 | ;; |
31 | @@ -225,7 +225,7 @@ case "${targ}" in |
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*-*-uclinux* | arm*-*-linux-uclibc* | arm-*-kfreebsd*-gnu | arm-*-vxworks | \ |
37 | arm*-*-eabi* ) |
38 | targ_defvec=bfd_elf32_littlearm_vec |
39 | targ_selvecs=bfd_elf32_bigarm_vec |
40 | @@ -378,7 +378,7 @@ case "${targ}" in |
41 | ;; |
42 | |
43 | #ifdef BFD64 |
44 | - hppa*64*-*-linux-gnu*) |
45 | + hppa*64*-*-linux-gnu* | hppa*64*-*-linux-uclibc*) |
46 | targ_defvec=bfd_elf64_hppa_linux_vec |
47 | targ_selvecs=bfd_elf64_hppa_vec |
48 | ;; |
49 | @@ -389,7 +389,7 @@ case "${targ}" in |
50 | ;; |
51 | #endif |
52 | |
53 | - hppa*-*-linux-gnu*) |
54 | + hppa*-*-linux-gnu* | hppa*-*-linux-uclibc*) |
55 | targ_defvec=bfd_elf32_hppa_linux_vec |
56 | targ_selvecs=bfd_elf32_hppa_vec |
57 | ;; |
58 | @@ -522,7 +522,7 @@ case "${targ}" in |
59 | targ_selvecs=bfd_elf32_i386_vec |
60 | targ_underscore=yes |
61 | ;; |
62 | - i[3-7]86-*-linux-gnu*) |
63 | + i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*) |
64 | targ_defvec=bfd_elf32_i386_vec |
65 | targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec" |
66 | targ64_selvecs=bfd_elf64_x86_64_vec |
67 | @@ -536,7 +536,7 @@ case "${targ}" in |
68 | targ_defvec=bfd_elf64_x86_64_vec |
69 | targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec bfd_efi_app_ia32_vec" |
70 | ;; |
71 | - x86_64-*-linux-gnu*) |
72 | + x86_64-*-linux-gnu* | x86_64-*-linux-uclibc*) |
73 | targ_defvec=bfd_elf64_x86_64_vec |
74 | targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec" |
75 | ;; |
76 | @@ -706,7 +706,7 @@ case "${targ}" in |
77 | targ_defvec=hp300hpux_vec |
78 | targ_underscore=yes |
79 | ;; |
80 | - m68*-*-linux*aout*) |
81 | + m68*-*-linux*aout* | m68*-*-linux-uclibc*) |
82 | targ_defvec=m68klinux_vec |
83 | targ_selvecs=bfd_elf32_m68k_vec |
84 | targ_underscore=yes |
85 | @@ -987,8 +987,8 @@ case "${targ}" in |
86 | ;; |
87 | #endif |
88 | powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \ |
89 | - powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems* | \ |
90 | - powerpc-*-chorus* | powerpc-*-vxworks* | powerpc-*-windiss*) |
91 | + powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-linux-uclibc* | powerpc-*-rtems* | \ |
92 | + powerpc-*-chorus* | powerpc-*-vxworks* | powerpc-*-windiss* ) |
93 | targ_defvec=bfd_elf32_powerpc_vec |
94 | targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec" |
95 | targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec" |
96 | @@ -1024,8 +1024,8 @@ case "${targ}" in |
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 | @@ -1192,7 +1192,7 @@ case "${targ}" in |
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 | @@ -1239,7 +1239,7 @@ case "${targ}" in |
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 | diff -Nrup gdb-6.3.orig/libtool.m4 gdb-6.3/libtool.m4 |
126 | --- gdb-6.3.orig/libtool.m4 2004-07-21 15:21:41.000000000 -0400 |
127 | +++ gdb-6.3/libtool.m4 2004-11-27 20:12:48.000000000 -0500 |
128 | @@ -645,6 +645,10 @@ linux-gnu*) |
129 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
130 | ;; |
131 | |
132 | +linux-uclibc*) |
133 | + lt_cv_deplibs_check_method=pass_all |
134 | + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` |
135 | + |
136 | netbsd* | knetbsd*-gnu) |
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 | diff -Nrup gdb-6.3.orig/ltconfig gdb-6.3/ltconfig |
140 | --- gdb-6.3.orig/ltconfig 2004-10-05 09:34:42.000000000 -0400 |
141 | +++ gdb-6.3/ltconfig 2004-11-27 20:01:13.000000000 -0500 |
142 | @@ -602,7 +602,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)- |
143 | |
144 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
145 | case $host_os in |
146 | -linux-gnu*) ;; |
147 | +linux-gnu*|linux-uclibc*) ;; |
148 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
149 | esac |
150 | |
151 | @@ -1270,6 +1270,24 @@ linux-gnu*) |
152 | dynamic_linker='GNU/Linux ld.so' |
153 | ;; |
154 | |
155 | +linux-uclibc*) |
156 | + version_type=linux |
157 | + need_lib_prefix=no |
158 | + need_version=no |
159 | + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
160 | + soname_spec='${libname}${release}.so$major' |
161 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
162 | + shlibpath_var=LD_LIBRARY_PATH |
163 | + shlibpath_overrides_runpath=no |
164 | + # This implies no fast_install, which is unacceptable. |
165 | + # Some rework will be needed to allow for fast_install |
166 | + # before this can be enabled. |
167 | + # Note: copied from linux-gnu, and may not be appropriate. |
168 | + hardcode_into_libs=yes |
169 | + # Assume using the uClibc dynamic linker. |
170 | + dynamic_linker="uClibc ld.so" |
171 | + ;; |
172 | + |
173 | netbsd*) |
174 | need_lib_prefix=no |
175 | need_version=no |