1 |
14 |
khays |
dnl Process this file with autoconf to produce a configure script.
|
2 |
|
|
dnl
|
3 |
|
|
|
4 |
|
|
AC_PREREQ(2.59)
|
5 |
|
|
AC_INIT
|
6 |
|
|
AC_CONFIG_SRCDIR([libbfd.c])
|
7 |
|
|
|
8 |
|
|
AC_CANONICAL_TARGET
|
9 |
|
|
AC_ISC_POSIX
|
10 |
|
|
|
11 |
166 |
khays |
AM_INIT_AUTOMAKE(bfd, 2.22.52)
|
12 |
14 |
khays |
|
13 |
|
|
dnl These must be called before LT_INIT, because it may want
|
14 |
|
|
dnl to call AC_CHECK_PROG.
|
15 |
|
|
AC_CHECK_TOOL(AR, ar)
|
16 |
|
|
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
17 |
|
|
|
18 |
|
|
dnl Default to a non shared library. This may be overridden by the
|
19 |
|
|
dnl configure option --enable-shared.
|
20 |
|
|
AC_DISABLE_SHARED
|
21 |
|
|
|
22 |
|
|
AC_PROG_CC
|
23 |
|
|
AC_GNU_SOURCE
|
24 |
|
|
AC_USE_SYSTEM_EXTENSIONS
|
25 |
|
|
|
26 |
|
|
LT_INIT([dlopen])
|
27 |
|
|
|
28 |
|
|
# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
|
29 |
|
|
ACX_LARGEFILE
|
30 |
|
|
|
31 |
|
|
AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
|
32 |
|
|
|
33 |
|
|
if test "$plugins" = "yes"; then
|
34 |
|
|
if test "$enable_dlopen" != "yes" ; then
|
35 |
|
|
AC_MSG_ERROR([
|
36 |
|
|
Building BFD with plugin support requires a host that supports -ldl.])
|
37 |
|
|
fi
|
38 |
|
|
enable_targets="$enable_targets plugin"
|
39 |
|
|
fi
|
40 |
|
|
|
41 |
|
|
AC_ARG_ENABLE(64-bit-bfd,
|
42 |
|
|
[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
|
43 |
|
|
[case "${enableval}" in
|
44 |
|
|
yes) want64=true ;;
|
45 |
|
|
no) want64=false ;;
|
46 |
|
|
*) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
|
47 |
|
|
esac],[want64=false])dnl
|
48 |
|
|
|
49 |
|
|
AC_ARG_ENABLE(targets,
|
50 |
|
|
[ --enable-targets alternative target configurations],
|
51 |
|
|
[case "${enableval}" in
|
52 |
|
|
yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all'])
|
53 |
|
|
;;
|
54 |
|
|
no) enable_targets= ;;
|
55 |
|
|
*) enable_targets=$enableval ;;
|
56 |
|
|
esac])dnl
|
57 |
|
|
|
58 |
|
|
AC_ARG_WITH(mmap,
|
59 |
|
|
[ --with-mmap try using mmap for BFD input files if available],
|
60 |
|
|
[case "${withval}" in
|
61 |
|
|
yes) want_mmap=true ;;
|
62 |
|
|
no) want_mmap=false ;;
|
63 |
|
|
*) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
|
64 |
|
|
esac],[want_mmap=false])dnl
|
65 |
|
|
|
66 |
|
|
AC_ARG_ENABLE(secureplt,
|
67 |
|
|
[ --enable-secureplt Default to creating read-only plt entries],
|
68 |
|
|
[case "${enableval}" in
|
69 |
|
|
yes) use_secureplt=true ;;
|
70 |
|
|
no) use_secureplt=false ;;
|
71 |
|
|
*) AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;;
|
72 |
|
|
esac],[use_secureplt=false])dnl
|
73 |
|
|
if test $use_secureplt = true; then
|
74 |
|
|
AC_DEFINE(USE_SECUREPLT, 1,
|
75 |
|
|
[Define if we should default to creating read-only plt entries])
|
76 |
|
|
fi
|
77 |
|
|
|
78 |
|
|
AC_ARG_ENABLE(leading-mingw64-underscores,
|
79 |
|
|
AS_HELP_STRING([--enable-leading-mingw64-underscores],
|
80 |
|
|
[Enable leading underscores on 64 bit mingw targets]),
|
81 |
|
|
[],[])
|
82 |
|
|
AS_IF([ test x"$enable_leading_mingw64_underscores" = xyes ],
|
83 |
|
|
[AC_DEFINE(USE_MINGW64_LEADING_UNDERSCORES, 1,
|
84 |
|
|
[Define if we should use leading underscore on 64 bit mingw targets])])
|
85 |
|
|
|
86 |
|
|
DEBUGDIR=${libdir}/debug
|
87 |
|
|
AC_ARG_WITH(separate-debug-dir,
|
88 |
|
|
AS_HELP_STRING([--with-separate-debug-dir=DIR],
|
89 |
|
|
[Look for global separate debug info in DIR [[default=LIBDIR/debug]]]),
|
90 |
|
|
[DEBUGDIR="${withval}"])
|
91 |
|
|
AC_SUBST(DEBUGDIR)
|
92 |
|
|
|
93 |
|
|
# Check to see if we should allow the generation of
|
94 |
|
|
# symbols with the ELF standard's STT_COMMON type.
|
95 |
|
|
AC_ARG_ENABLE(elf-stt-common,
|
96 |
|
|
[ --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type],
|
97 |
|
|
[case "${enableval}" in
|
98 |
|
|
yes) want_elf_stt_common=true ;;
|
99 |
|
|
no) want_elf_stt_common=false ;;
|
100 |
|
|
*) AC_MSG_ERROR(bad value ${enableval} for ELF STT_COMMON option) ;;
|
101 |
|
|
esac],
|
102 |
|
|
# We have to choose a default behaviour. For native builds we could
|
103 |
|
|
# test whether the loader supports the STT_COMMON type, but that would
|
104 |
|
|
# mean that built binaries could not be exported to older systems where
|
105 |
|
|
# the loader does not support it. So by default we always choose to
|
106 |
|
|
# disable this feature.
|
107 |
|
|
want_elf_stt_common=false)dnl
|
108 |
|
|
if test $want_elf_stt_common = true; then
|
109 |
|
|
AC_DEFINE(USE_STT_COMMON, 1,
|
110 |
|
|
[Define if we may generate symbols with ELF's STT_COMMON type])
|
111 |
|
|
fi
|
112 |
|
|
|
113 |
|
|
ACX_PKGVERSION([GNU Binutils])
|
114 |
|
|
ACX_BUGURL([http://www.sourceware.org/bugzilla/])
|
115 |
|
|
|
116 |
|
|
AM_BINUTILS_WARNINGS
|
117 |
|
|
|
118 |
|
|
AC_CONFIG_HEADERS(config.h:config.in)
|
119 |
|
|
|
120 |
|
|
if test -z "$target" ; then
|
121 |
|
|
AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
|
122 |
|
|
fi
|
123 |
|
|
|
124 |
|
|
AM_MAINTAINER_MODE
|
125 |
|
|
AM_CONDITIONAL(GENINSRC_NEVER, false)
|
126 |
|
|
AM_INSTALL_LIBBFD
|
127 |
|
|
AC_EXEEXT
|
128 |
|
|
|
129 |
|
|
host64=false
|
130 |
|
|
target64=false
|
131 |
|
|
bfd_default_target_size=32
|
132 |
|
|
|
133 |
|
|
# host stuff:
|
134 |
|
|
|
135 |
|
|
ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru"
|
136 |
|
|
ZW_GNU_GETTEXT_SISTER_DIR
|
137 |
|
|
AM_PO_SUBDIRS
|
138 |
|
|
|
139 |
|
|
# Permit host specific settings.
|
140 |
|
|
. ${srcdir}/configure.host
|
141 |
|
|
|
142 |
|
|
AC_SUBST(HDEFINES)
|
143 |
|
|
AC_PROG_INSTALL
|
144 |
|
|
|
145 |
|
|
BFD_HOST_64BIT_LONG=0
|
146 |
|
|
BFD_HOST_64BIT_LONG_LONG=0
|
147 |
|
|
BFD_HOST_64_BIT_DEFINED=0
|
148 |
|
|
BFD_HOST_64_BIT=
|
149 |
|
|
BFD_HOST_U_64_BIT=
|
150 |
|
|
BFD_HOSTPTR_T="unsigned long"
|
151 |
|
|
|
152 |
|
|
AC_CHECK_SIZEOF(long long)
|
153 |
|
|
AC_CHECK_SIZEOF(void *)
|
154 |
|
|
AC_CHECK_SIZEOF(long)
|
155 |
|
|
|
156 |
|
|
if test "x${ac_cv_sizeof_void_p}" = "x8"; then
|
157 |
|
|
host64=true
|
158 |
|
|
fi
|
159 |
|
|
|
160 |
|
|
if test "x${ac_cv_sizeof_long}" = "x8"; then
|
161 |
|
|
BFD_HOST_64BIT_LONG=1
|
162 |
|
|
test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
|
163 |
|
|
test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
|
164 |
|
|
elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
|
165 |
|
|
BFD_HOST_64BIT_LONG_LONG=1
|
166 |
|
|
test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
|
167 |
|
|
test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
|
168 |
|
|
if test "x${ac_cv_sizeof_void_p}" = "x8"; then
|
169 |
|
|
BFD_HOSTPTR_T="unsigned long long"
|
170 |
|
|
fi
|
171 |
|
|
fi
|
172 |
|
|
|
173 |
|
|
if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
|
174 |
|
|
BFD_HOST_64_BIT_DEFINED=1
|
175 |
|
|
BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
|
176 |
|
|
BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
|
177 |
|
|
fi
|
178 |
|
|
|
179 |
|
|
AC_SUBST(BFD_HOST_64BIT_LONG)
|
180 |
|
|
AC_SUBST(BFD_HOST_64BIT_LONG_LONG)
|
181 |
|
|
AC_SUBST(BFD_HOST_64_BIT_DEFINED)
|
182 |
|
|
AC_SUBST(BFD_HOST_64_BIT)
|
183 |
|
|
AC_SUBST(BFD_HOST_U_64_BIT)
|
184 |
|
|
AC_SUBST(BFD_HOSTPTR_T)
|
185 |
|
|
|
186 |
|
|
BFD_CC_FOR_BUILD
|
187 |
|
|
|
188 |
|
|
AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h)
|
189 |
|
|
AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h)
|
190 |
|
|
GCC_HEADER_STDINT(bfd_stdint.h)
|
191 |
|
|
AC_HEADER_TIME
|
192 |
|
|
AC_HEADER_DIRENT
|
193 |
|
|
ACX_HEADER_STRING
|
194 |
|
|
AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
|
195 |
|
|
AC_CHECK_FUNCS(strtoull)
|
196 |
|
|
|
197 |
|
|
AC_CHECK_DECLS(basename)
|
198 |
|
|
AC_CHECK_DECLS(ftello)
|
199 |
|
|
AC_CHECK_DECLS(ftello64)
|
200 |
|
|
AC_CHECK_DECLS(fseeko)
|
201 |
|
|
AC_CHECK_DECLS(fseeko64)
|
202 |
|
|
|
203 |
|
|
BFD_BINARY_FOPEN
|
204 |
|
|
|
205 |
|
|
AC_CHECK_DECLS(ffs)
|
206 |
|
|
AC_CHECK_DECLS(free)
|
207 |
|
|
AC_CHECK_DECLS(getenv)
|
208 |
|
|
AC_CHECK_DECLS(malloc)
|
209 |
|
|
AC_CHECK_DECLS(realloc)
|
210 |
|
|
AC_CHECK_DECLS(stpcpy)
|
211 |
|
|
AC_CHECK_DECLS(strstr)
|
212 |
|
|
AC_CHECK_DECLS(snprintf)
|
213 |
|
|
AC_CHECK_DECLS(vsnprintf)
|
214 |
|
|
|
215 |
|
|
# Link in zlib if we can. This allows us to read compressed debug sections.
|
216 |
|
|
# This is used only by compress.c.
|
217 |
|
|
AM_ZLIB
|
218 |
|
|
|
219 |
|
|
# If we are configured native, pick a core file support file.
|
220 |
|
|
COREFILE=
|
221 |
|
|
COREFLAG=
|
222 |
|
|
CORE_HEADER=
|
223 |
|
|
TRAD_HEADER=
|
224 |
|
|
if test "${target}" = "${host}"; then
|
225 |
|
|
case "${host}" in
|
226 |
|
|
alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
|
227 |
|
|
COREFILE=''
|
228 |
|
|
;;
|
229 |
|
|
alpha*-*-linux-*)
|
230 |
|
|
COREFILE=trad-core.lo
|
231 |
|
|
TRAD_HEADER='"hosts/alphalinux.h"'
|
232 |
|
|
;;
|
233 |
|
|
alpha*-*-netbsd* | alpha*-*-openbsd*)
|
234 |
|
|
COREFILE=netbsd-core.lo
|
235 |
|
|
;;
|
236 |
|
|
alpha*-*-*)
|
237 |
|
|
COREFILE=osf-core.lo
|
238 |
|
|
;;
|
239 |
|
|
arm-*-freebsd* | arm-*-kfreebsd*-gnu)
|
240 |
|
|
COREFILE='' ;;
|
241 |
|
|
arm-*-netbsd* | arm-*-openbsd*)
|
242 |
|
|
COREFILE=netbsd-core.lo
|
243 |
|
|
;;
|
244 |
|
|
arm-*-riscix) COREFILE=trad-core.lo ;;
|
245 |
|
|
hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
|
246 |
|
|
hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
|
247 |
|
|
hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
|
248 |
|
|
hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
|
249 |
|
|
COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
|
250 |
|
|
hppa*-*-netbsd* | hppa*-*-openbsd*)
|
251 |
|
|
COREFILE=netbsd-core.lo
|
252 |
|
|
;;
|
253 |
|
|
|
254 |
|
|
i370-*-*)
|
255 |
|
|
COREFILE=trad-core.lo
|
256 |
|
|
TRAD_HEADER='"hosts/i370linux.h"'
|
257 |
|
|
;;
|
258 |
|
|
|
259 |
|
|
changequote(,)dnl
|
260 |
|
|
i[3-7]86-sequent-bsd*)
|
261 |
|
|
changequote([,])dnl
|
262 |
|
|
COREFILE=trad-core.lo
|
263 |
|
|
TRAD_HEADER='"hosts/symmetry.h"'
|
264 |
|
|
;;
|
265 |
|
|
changequote(,)dnl
|
266 |
|
|
i[3-7]86-sequent-sysv4*) ;;
|
267 |
|
|
i[3-7]86-sequent-sysv*)
|
268 |
|
|
changequote([,])dnl
|
269 |
|
|
COREFILE=trad-core.lo
|
270 |
|
|
TRAD_HEADER='"hosts/symmetry.h"'
|
271 |
|
|
;;
|
272 |
|
|
changequote(,)dnl
|
273 |
|
|
i[3-7]86-*-bsdi)
|
274 |
|
|
changequote([,])dnl
|
275 |
|
|
COREFILE=
|
276 |
|
|
;;
|
277 |
|
|
changequote(,)dnl
|
278 |
|
|
i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
|
279 |
|
|
changequote([,])dnl
|
280 |
|
|
COREFILE=trad-core.lo
|
281 |
|
|
TRAD_HEADER='"hosts/i386bsd.h"'
|
282 |
|
|
;;
|
283 |
|
|
changequote(,)dnl
|
284 |
|
|
i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
|
285 |
|
|
changequote([,])dnl
|
286 |
|
|
COREFILE=''
|
287 |
|
|
TRAD_HEADER='"hosts/i386bsd.h"'
|
288 |
|
|
;;
|
289 |
|
|
changequote(,)dnl
|
290 |
|
|
i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
|
291 |
|
|
changequote([,])dnl
|
292 |
|
|
COREFILE=netbsd-core.lo
|
293 |
|
|
;;
|
294 |
|
|
changequote(,)dnl
|
295 |
|
|
i[3-7]86-esix-sysv3*)
|
296 |
|
|
changequote([,])dnl
|
297 |
|
|
COREFILE=trad-core.lo
|
298 |
|
|
TRAD_HEADER='"hosts/esix.h"'
|
299 |
|
|
;;
|
300 |
|
|
changequote(,)dnl
|
301 |
|
|
i[3-7]86-*-sco3.2v5*)
|
302 |
|
|
changequote([,])dnl
|
303 |
|
|
COREFILE=sco5-core.lo
|
304 |
|
|
;;
|
305 |
|
|
changequote(,)dnl
|
306 |
|
|
i[3-7]86-*-sco* | i[3-7]86-*-isc*)
|
307 |
|
|
changequote([,])dnl
|
308 |
|
|
COREFILE=trad-core.lo
|
309 |
|
|
TRAD_HEADER='"hosts/i386sco.h"'
|
310 |
|
|
;;
|
311 |
|
|
changequote(,)dnl
|
312 |
|
|
i[3-7]86-*-mach3*)
|
313 |
|
|
changequote([,])dnl
|
314 |
|
|
COREFILE=trad-core.lo
|
315 |
|
|
TRAD_HEADER='"hosts/i386mach3.h"'
|
316 |
|
|
;;
|
317 |
|
|
changequote(,)dnl
|
318 |
|
|
i[3-7]86-*-linux-*)
|
319 |
|
|
changequote([,])dnl
|
320 |
|
|
COREFILE=trad-core.lo
|
321 |
|
|
TRAD_HEADER='"hosts/i386linux.h"'
|
322 |
|
|
;;
|
323 |
|
|
changequote(,)dnl
|
324 |
|
|
i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
|
325 |
|
|
i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
|
326 |
|
|
changequote([,])dnl
|
327 |
|
|
i860-*-mach3* | i860-*-osf1*)
|
328 |
|
|
COREFILE=trad-core.lo
|
329 |
|
|
TRAD_HEADER='"hosts/i860mach3.h"'
|
330 |
|
|
;;
|
331 |
|
|
mips-*-netbsd* | mips*-*-openbsd*)
|
332 |
|
|
COREFILE=netbsd-core.lo
|
333 |
|
|
;;
|
334 |
|
|
mips-dec-*)
|
335 |
|
|
COREFILE=trad-core.lo
|
336 |
|
|
TRAD_HEADER='"hosts/decstation.h"'
|
337 |
|
|
;;
|
338 |
|
|
mips-sgi-irix4*) COREFILE=irix-core.lo ;;
|
339 |
|
|
mips-sgi-irix5*) COREFILE=irix-core.lo ;;
|
340 |
|
|
mips-sgi-irix6*) COREFILE=irix-core.lo ;;
|
341 |
|
|
mips-*-sysv4*) ;;
|
342 |
|
|
mips-*-sysv* | mips-*-riscos*)
|
343 |
|
|
COREFILE=trad-core.lo
|
344 |
|
|
TRAD_HEADER='"hosts/riscos.h"'
|
345 |
|
|
;;
|
346 |
|
|
mips-sony-bsd*)
|
347 |
|
|
COREFILE=trad-core.lo
|
348 |
|
|
TRAD_HEADER='"hosts/news-mips.h"'
|
349 |
|
|
;;
|
350 |
|
|
m68*-bull*-sysv*)
|
351 |
|
|
COREFILE=trad-core.lo
|
352 |
|
|
TRAD_HEADER='"hosts/dpx2.h"'
|
353 |
|
|
;;
|
354 |
|
|
m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
|
355 |
|
|
m68*-hp-bsd*)
|
356 |
|
|
COREFILE=trad-core.lo
|
357 |
|
|
TRAD_HEADER='"hosts/hp300bsd.h"'
|
358 |
|
|
;;
|
359 |
|
|
m68*-*-linux-*)
|
360 |
|
|
COREFILE=trad-core.lo
|
361 |
|
|
TRAD_HEADER='"hosts/m68klinux.h"'
|
362 |
|
|
;;
|
363 |
|
|
m68*-motorola-sysv*)
|
364 |
|
|
COREFILE=trad-core.lo
|
365 |
|
|
TRAD_HEADER='"hosts/delta68.h"'
|
366 |
|
|
;;
|
367 |
|
|
m68*-sony-*)
|
368 |
|
|
COREFILE=trad-core.lo
|
369 |
|
|
TRAD_HEADER='"hosts/news.h"'
|
370 |
|
|
;;
|
371 |
|
|
m68*-*-netbsd* | m68*-*-openbsd*)
|
372 |
|
|
COREFILE=netbsd-core.lo
|
373 |
|
|
;;
|
374 |
|
|
m68*-apple-aux*)
|
375 |
|
|
COREFILE=trad-core.lo
|
376 |
|
|
TRAD_HEADER='"hosts/m68kaux.h"'
|
377 |
|
|
;;
|
378 |
|
|
m88*-*-sysv4*)
|
379 |
|
|
;;
|
380 |
|
|
m88*-motorola-sysv*)
|
381 |
|
|
COREFILE=ptrace-core.lo
|
382 |
|
|
;;
|
383 |
|
|
m88*-*-mach3*)
|
384 |
|
|
COREFILE=trad-core.lo
|
385 |
|
|
TRAD_HEADER='"hosts/m88kmach3.h"'
|
386 |
|
|
;;
|
387 |
|
|
m88*-*-openbsd*)
|
388 |
|
|
COREFILE=netbsd-core.lo
|
389 |
|
|
;;
|
390 |
|
|
ns32k-pc532-mach)
|
391 |
|
|
COREFILE=trad-core.lo
|
392 |
|
|
TRAD_HEADER='"hosts/pc532mach.h"'
|
393 |
|
|
;;
|
394 |
|
|
ns32k-*-netbsd* | ns32k-*-openbsd*)
|
395 |
|
|
COREFILE=netbsd-core.lo
|
396 |
|
|
;;
|
397 |
|
|
rs6000-*-lynx*)
|
398 |
|
|
COREFILE=lynx-core.lo
|
399 |
|
|
;;
|
400 |
|
|
changequote(,)dnl
|
401 |
|
|
rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
|
402 |
|
|
changequote([,])dnl
|
403 |
|
|
COREFILE=rs6000-core.lo
|
404 |
|
|
COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
|
405 |
|
|
;;
|
406 |
|
|
changequote(,)dnl
|
407 |
|
|
rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
|
408 |
|
|
changequote([,])dnl
|
409 |
|
|
COREFILE=rs6000-core.lo
|
410 |
|
|
COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
|
411 |
|
|
# Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
|
412 |
|
|
# have c_impl as a member of struct core_dumpx
|
413 |
|
|
AC_MSG_CHECKING([for c_impl in struct core_dumpx])
|
414 |
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1,
|
415 |
|
|
[Define if struct core_dumpx has member c_impl])
|
416 |
|
|
AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
|
417 |
|
|
;;
|
418 |
|
|
rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
|
419 |
|
|
rs6000-*-*) COREFILE=rs6000-core.lo ;;
|
420 |
|
|
powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
|
421 |
|
|
powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
|
422 |
|
|
powerpc-*-beos*) ;;
|
423 |
|
|
powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
|
424 |
|
|
COREFILE='' ;;
|
425 |
|
|
powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
426 |
|
|
powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
|
427 |
|
|
s390*-*-*) COREFILE=trad-core.lo ;;
|
428 |
|
|
sh*-*-netbsd* | sh*-*-openbsd*)
|
429 |
|
|
COREFILE=netbsd-core.lo
|
430 |
|
|
;;
|
431 |
|
|
sparc-*-netbsd* | sparc*-*-openbsd*)
|
432 |
|
|
COREFILE=netbsd-core.lo
|
433 |
|
|
;;
|
434 |
|
|
tahoe-*-*)
|
435 |
|
|
COREFILE=trad-core.lo
|
436 |
|
|
TRAD_HEADER='"hosts/tahoe.h"'
|
437 |
|
|
;;
|
438 |
|
|
vax-*-netbsd* | vax-*-openbsd*)
|
439 |
|
|
COREFILE=netbsd-core.lo
|
440 |
|
|
;;
|
441 |
|
|
vax-*-ultrix2*)
|
442 |
|
|
COREFILE=trad-core.lo
|
443 |
|
|
TRAD_HEADER='"hosts/vaxult2.h"'
|
444 |
|
|
;;
|
445 |
|
|
vax-*-ultrix*)
|
446 |
|
|
COREFILE=trad-core.lo
|
447 |
|
|
TRAD_HEADER='"hosts/vaxult2.h"'
|
448 |
|
|
;;
|
449 |
|
|
vax-*-linux-*)
|
450 |
|
|
COREFILE=trad-core.lo
|
451 |
|
|
TRAD_HEADER='"hosts/vaxlinux.h"'
|
452 |
|
|
;;
|
453 |
|
|
vax-*-*)
|
454 |
|
|
COREFILE=trad-core.lo
|
455 |
|
|
TRAD_HEADER='"hosts/vaxbsd.h"'
|
456 |
|
|
;;
|
457 |
|
|
x86_64-*-linux*)
|
458 |
|
|
CORE_HEADER='"hosts/x86-64linux.h"'
|
459 |
|
|
;;
|
460 |
|
|
x86_64-*-netbsd* | x86_64-*-openbsd*)
|
461 |
|
|
COREFILE=netbsd-core.lo
|
462 |
|
|
;;
|
463 |
|
|
esac
|
464 |
|
|
|
465 |
|
|
case "$COREFILE" in
|
466 |
|
|
aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
|
467 |
|
|
hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
|
468 |
|
|
hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
|
469 |
|
|
irix-core.lo) COREFLAG=-DIRIX_CORE ;;
|
470 |
|
|
lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
|
471 |
|
|
netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
|
472 |
|
|
osf-core.lo) COREFLAG=-DOSF_CORE ;;
|
473 |
|
|
ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
|
474 |
|
|
rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
|
475 |
|
|
sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
|
476 |
|
|
trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
|
477 |
|
|
esac
|
478 |
|
|
|
479 |
|
|
# ELF corefile support has several flavors, but all of
|
480 |
|
|
# them use something called
|
481 |
|
|
AC_CHECK_HEADERS(sys/procfs.h)
|
482 |
|
|
if test "$ac_cv_header_sys_procfs_h" = yes; then
|
483 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
|
484 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
|
485 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
|
486 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
|
487 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
|
488 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
|
489 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
|
490 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
|
491 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo_t, pr_pid)
|
492 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
|
493 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo32_t, pr_pid)
|
494 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
|
495 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo_t, pr_pid)
|
496 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
|
497 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo32_t, pr_pid)
|
498 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
|
499 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
|
500 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
|
501 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
|
502 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_fpreg)
|
503 |
|
|
BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
|
504 |
|
|
fi
|
505 |
|
|
fi
|
506 |
|
|
AC_SUBST(COREFILE)
|
507 |
|
|
AC_SUBST(COREFLAG)
|
508 |
|
|
if test -n "$CORE_HEADER"; then
|
509 |
|
|
AC_DEFINE_UNQUOTED(CORE_HEADER, $CORE_HEADER,
|
510 |
|
|
[Name of host specific core header file to include in elf.c.])
|
511 |
|
|
fi
|
512 |
|
|
if test -n "$TRAD_HEADER"; then
|
513 |
|
|
AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
|
514 |
|
|
[Name of host specific header file to include in trad-core.c.])
|
515 |
|
|
fi
|
516 |
|
|
|
517 |
|
|
# Check if linker supports --as-needed and --no-as-needed options
|
518 |
|
|
AC_CACHE_CHECK(linker --as-needed support, bfd_cv_ld_as_needed,
|
519 |
|
|
[bfd_cv_ld_as_needed=no
|
520 |
|
|
if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
|
521 |
|
|
bfd_cv_ld_as_needed=yes
|
522 |
|
|
fi
|
523 |
|
|
])
|
524 |
|
|
|
525 |
|
|
LT_LIB_M
|
526 |
|
|
|
527 |
|
|
# When building a shared libbfd, link against the pic version of libiberty
|
528 |
|
|
# so that apps that use libbfd won't need libiberty just to satisfy any
|
529 |
|
|
# libbfd references.
|
530 |
|
|
# We can't do that if a pic libiberty is unavailable since including non-pic
|
531 |
|
|
# code would insert text relocations into libbfd.
|
532 |
|
|
SHARED_LIBADD=
|
533 |
|
|
SHARED_LDFLAGS=
|
534 |
|
|
if test "$enable_shared" = "yes"; then
|
535 |
|
|
changequote(,)dnl
|
536 |
|
|
x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
|
537 |
|
|
changequote([,])dnl
|
538 |
|
|
if test -n "$x"; then
|
539 |
|
|
SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
|
540 |
|
|
fi
|
541 |
|
|
|
542 |
|
|
# More hacks to build DLLs on Windows.
|
543 |
|
|
case "${host}" in
|
544 |
|
|
*-*-cygwin*)
|
545 |
|
|
SHARED_LDFLAGS="-no-undefined"
|
546 |
|
|
SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
|
547 |
|
|
;;
|
548 |
|
|
esac
|
549 |
|
|
|
550 |
|
|
if test -n "$SHARED_LIBADD"; then
|
551 |
|
|
if test -n "$LIBM"; then
|
552 |
|
|
if test x"$bfd_cv_ld_as_needed" = xyes; then
|
553 |
|
|
# Link against libm only when needed. Put -lc, -lm inside -Wl
|
554 |
|
|
# to stop libtool reordering these options.
|
555 |
|
|
SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
|
556 |
|
|
else
|
557 |
|
|
SHARED_LIBADD="$SHARED_LIBADD $LIBM"
|
558 |
|
|
fi
|
559 |
|
|
fi
|
560 |
|
|
fi
|
561 |
|
|
fi
|
562 |
|
|
AC_SUBST(SHARED_LDFLAGS)
|
563 |
|
|
AC_SUBST(SHARED_LIBADD)
|
564 |
|
|
|
565 |
|
|
# target stuff:
|
566 |
|
|
|
567 |
|
|
# Canonicalize the secondary target names.
|
568 |
|
|
if test -n "$enable_targets" ; then
|
569 |
|
|
for targ in `echo $enable_targets | sed 's/,/ /g'`
|
570 |
|
|
do
|
571 |
|
|
result=`$ac_config_sub $targ 2>/dev/null`
|
572 |
|
|
if test -n "$result" ; then
|
573 |
|
|
canon_targets="$canon_targets $result"
|
574 |
|
|
else
|
575 |
|
|
# Allow targets that config.sub doesn't recognize, like "all".
|
576 |
|
|
canon_targets="$canon_targets $targ"
|
577 |
|
|
fi
|
578 |
|
|
done
|
579 |
|
|
fi
|
580 |
|
|
|
581 |
|
|
all_targets=false
|
582 |
|
|
defvec=
|
583 |
|
|
selvecs=
|
584 |
|
|
assocvecs=
|
585 |
|
|
selarchs=
|
586 |
|
|
TDEFINES=
|
587 |
|
|
for targ in $target $canon_targets
|
588 |
|
|
do
|
589 |
|
|
if test "x$targ" = "xall"; then
|
590 |
|
|
all_targets=true
|
591 |
|
|
assocvecs="$assocvecs $targ_defvec $targ_selvecs"
|
592 |
|
|
else
|
593 |
|
|
. $srcdir/config.bfd
|
594 |
|
|
if test "x$targ" = "x$target"; then
|
595 |
|
|
defvec=$targ_defvec
|
596 |
|
|
fi
|
597 |
|
|
selvecs="$selvecs $targ_defvec $targ_selvecs"
|
598 |
|
|
selarchs="$selarchs $targ_archs"
|
599 |
|
|
TDEFINES="$TDEFINES $targ_cflags"
|
600 |
|
|
fi
|
601 |
|
|
done
|
602 |
|
|
AC_SUBST(TDEFINES)
|
603 |
|
|
|
604 |
|
|
# This processing still needs to be done if we're to decide properly whether
|
605 |
|
|
# 64-bit support needs to be compiled in. Currently, it will be included if
|
606 |
|
|
# the default or any other explicitly requested target requires it; it
|
607 |
|
|
# will not be included on a 32-bit host if no 64-bit target is requested, and
|
608 |
|
|
# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
|
609 |
|
|
# used.
|
610 |
|
|
|
611 |
|
|
# uniq the default and selected vectors in all the configured targets.
|
612 |
|
|
f=""
|
613 |
|
|
for i in $selvecs ; do
|
614 |
|
|
case " $f " in
|
615 |
|
|
*" $i "*) ;;
|
616 |
|
|
*) f="$f $i" ;;
|
617 |
|
|
esac
|
618 |
|
|
done
|
619 |
|
|
selvecs="$f"
|
620 |
|
|
|
621 |
|
|
|
622 |
|
|
# uniq the associated vectors in all the configured targets.
|
623 |
|
|
f=""
|
624 |
|
|
for i in $assocvecs ; do
|
625 |
|
|
case " $f " in
|
626 |
|
|
*" $i "*) ;;
|
627 |
|
|
*) f="$f $i" ;;
|
628 |
|
|
esac
|
629 |
|
|
done
|
630 |
|
|
assocvecs="$f"
|
631 |
|
|
|
632 |
|
|
|
633 |
|
|
# uniq the architectures in all the configured targets.
|
634 |
|
|
f=""
|
635 |
|
|
for i in $selarchs ; do
|
636 |
|
|
case " $f " in
|
637 |
|
|
*" $i "*) ;;
|
638 |
|
|
*) f="$f $i" ;;
|
639 |
|
|
esac
|
640 |
|
|
done
|
641 |
|
|
selarchs="$f"
|
642 |
|
|
|
643 |
|
|
# Target backend .o files.
|
644 |
|
|
tb=
|
645 |
|
|
|
646 |
|
|
elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo
|
647 |
|
|
elf-eh-frame.lo dwarf1.lo"
|
648 |
|
|
|
649 |
|
|
for vec in $selvecs
|
650 |
|
|
do
|
651 |
|
|
target_size=32
|
652 |
|
|
case "$vec" in
|
653 |
|
|
# This list is alphabetized to make it easy to compare
|
654 |
|
|
# with the two vector lists in targets.c. For the same reason,
|
655 |
|
|
# use one entry per line, even though this leads to long lines.
|
656 |
|
|
a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
|
657 |
|
|
aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
|
658 |
|
|
aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
|
659 |
|
|
aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
|
660 |
|
|
aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
|
661 |
|
|
apollocoff_vec) tb="$tb coff-apollo.lo" ;;
|
662 |
|
|
arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
|
663 |
|
|
arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
|
664 |
|
|
arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
|
665 |
|
|
arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
|
666 |
|
|
arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
|
667 |
|
|
arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
|
668 |
|
|
arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
|
669 |
|
|
arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
|
670 |
|
|
armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
|
671 |
|
|
armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
|
672 |
|
|
armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
|
673 |
|
|
armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
|
674 |
|
|
armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
|
675 |
|
|
armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
|
676 |
|
|
armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
|
677 |
|
|
b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
|
678 |
|
|
b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
|
679 |
|
|
bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
|
680 |
|
|
bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
|
681 |
|
|
bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
|
682 |
|
|
bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
|
683 |
|
|
bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
|
684 |
|
|
bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
685 |
|
|
bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
686 |
|
|
bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
|
687 |
|
|
bfd_elf32_bigarm_symbian_vec)
|
688 |
|
|
tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
|
689 |
|
|
bfd_elf32_bigarm_vxworks_vec)
|
690 |
|
|
tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
|
691 |
|
|
bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
|
692 |
|
|
bfd_elf32_bigmips_vxworks_vec)
|
693 |
|
|
tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
|
694 |
|
|
bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
|
695 |
|
|
bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
|
696 |
|
|
bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
697 |
|
|
bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
|
698 |
|
|
bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
|
699 |
|
|
bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
|
700 |
|
|
bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
|
701 |
163 |
khays |
bfd_elf32_epiphany_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
|
702 |
14 |
khays |
bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
|
703 |
|
|
bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
|
704 |
|
|
bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
|
705 |
|
|
bfd_elf32_moxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
|
706 |
|
|
bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
|
707 |
|
|
bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
708 |
|
|
bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
709 |
|
|
bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
710 |
|
|
bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
|
711 |
|
|
bfd_elf32_i386_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
712 |
|
|
bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
713 |
161 |
khays |
bfd_elf32_i386_nacl_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
714 |
14 |
khays |
bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
715 |
|
|
bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
716 |
|
|
bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
717 |
|
|
bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
718 |
|
|
bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
|
719 |
|
|
bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
|
720 |
|
|
bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf";;
|
721 |
|
|
bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
|
722 |
|
|
bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
|
723 |
|
|
bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
|
724 |
|
|
bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
|
725 |
|
|
bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
726 |
|
|
bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
727 |
|
|
bfd_elf32_littlearm_symbian_vec)
|
728 |
|
|
tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
|
729 |
|
|
bfd_elf32_littlearm_vxworks_vec)
|
730 |
|
|
tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
|
731 |
|
|
bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
|
732 |
|
|
bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
|
733 |
|
|
bfd_elf32_littlemips_vxworks_vec)
|
734 |
|
|
tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
|
735 |
|
|
bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
|
736 |
|
|
bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
|
737 |
|
|
bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
|
738 |
|
|
bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
|
739 |
|
|
bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
|
740 |
|
|
bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
|
741 |
|
|
bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
|
742 |
|
|
bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
|
743 |
|
|
bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
|
744 |
|
|
bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
|
745 |
|
|
bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
|
746 |
|
|
bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
|
747 |
|
|
bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
|
748 |
|
|
bfd_elf32_microblaze_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
|
749 |
|
|
bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
|
750 |
|
|
bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
|
751 |
|
|
bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
|
752 |
|
|
bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
|
753 |
|
|
bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
754 |
|
|
bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
755 |
|
|
bfd_elf32_ntradbigmips_vec | bfd_elf32_ntradbigmips_freebsd_vec)
|
756 |
|
|
tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
757 |
|
|
bfd_elf32_ntradlittlemips_vec | bfd_elf32_ntradlittlemips_freebsd_vec)
|
758 |
|
|
tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
759 |
|
|
bfd_elf32_open8_vec) tb="$tb elf32-open8.lo elf32.lo $elf" ;;
|
760 |
|
|
bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
|
761 |
|
|
bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
|
762 |
|
|
bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
763 |
|
|
bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
764 |
|
|
bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
765 |
|
|
bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
766 |
166 |
khays |
bfd_elf32_powerpc_freebsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
767 |
14 |
khays |
bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
768 |
163 |
khays |
bfd_elf32_rl78_vec) tb="$tb elf32-rl78.lo $elf" ;;
|
769 |
14 |
khays |
bfd_elf32_rx_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
|
770 |
|
|
bfd_elf32_rx_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
|
771 |
|
|
bfd_elf32_rx_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
|
772 |
|
|
bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
|
773 |
|
|
bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
|
774 |
|
|
bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
|
775 |
|
|
# FIXME: We include cofflink.lo not because it's needed for
|
776 |
|
|
# bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
|
777 |
|
|
# which needs it but does not list it. Should be fixed in right place.
|
778 |
|
|
bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
779 |
|
|
bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
780 |
|
|
bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
781 |
|
|
bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
782 |
|
|
bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
|
783 |
|
|
bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
|
784 |
|
|
bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
|
785 |
|
|
bfd_elf32_shbfd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
786 |
|
|
bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
787 |
|
|
bfd_elf32_shfd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
788 |
|
|
bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
|
789 |
|
|
bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
|
790 |
|
|
bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
791 |
|
|
bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
792 |
|
|
bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
|
793 |
|
|
bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
794 |
|
|
bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
|
795 |
|
|
bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
796 |
|
|
bfd_elf32_sparc_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
797 |
|
|
bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
798 |
|
|
bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
|
799 |
|
|
bfd_elf32_tic6x_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
|
800 |
|
|
bfd_elf32_tic6x_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
|
801 |
|
|
bfd_elf32_tic6x_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
|
802 |
|
|
bfd_elf32_tic6x_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
|
803 |
|
|
bfd_elf32_tic6x_elf_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
|
804 |
|
|
bfd_elf32_tic6x_elf_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
|
805 |
166 |
khays |
bfd_elf32_tilegx_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
|
806 |
|
|
bfd_elf32_tilegx_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
|
807 |
148 |
khays |
bfd_elf32_tilepro_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
|
808 |
14 |
khays |
bfd_elf32_tradbigmips_vec | bfd_elf32_tradbigmips_freebsd_vec)
|
809 |
|
|
tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
|
810 |
|
|
bfd_elf32_tradlittlemips_vec | bfd_elf32_tradlittlemips_freebsd_vec)
|
811 |
|
|
tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
|
812 |
|
|
bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
813 |
|
|
bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
|
814 |
|
|
bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
|
815 |
|
|
bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
|
816 |
|
|
bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
|
817 |
|
|
bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
|
818 |
|
|
bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
|
819 |
|
|
bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
|
820 |
|
|
bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
|
821 |
|
|
bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
|
822 |
|
|
bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
823 |
|
|
bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
|
824 |
|
|
bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
|
825 |
|
|
bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
826 |
|
|
bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
827 |
|
|
bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
828 |
|
|
bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;;
|
829 |
|
|
bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
|
830 |
|
|
bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
831 |
|
|
bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
|
832 |
|
|
bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
|
833 |
|
|
bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
|
834 |
166 |
khays |
bfd_elf64_powerpc_freebsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
|
835 |
14 |
khays |
bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
|
836 |
|
|
bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
837 |
|
|
bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
838 |
|
|
bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
839 |
|
|
bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
840 |
|
|
bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
841 |
|
|
bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
842 |
|
|
bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
|
843 |
|
|
bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
|
844 |
|
|
bfd_elf64_sparc_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
|
845 |
166 |
khays |
bfd_elf64_tilegx_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
|
846 |
|
|
bfd_elf64_tilegx_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
|
847 |
14 |
khays |
bfd_elf64_tradbigmips_vec | bfd_elf64_tradbigmips_freebsd_vec)
|
848 |
|
|
tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
849 |
|
|
bfd_elf64_tradlittlemips_vec | bfd_elf64_tradlittlemips_freebsd_vec)
|
850 |
|
|
tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
851 |
|
|
bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
|
852 |
|
|
bfd_elf64_x86_64_sol2_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
|
853 |
|
|
bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
|
854 |
|
|
bfd_elf32_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
|
855 |
|
|
bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
|
856 |
|
|
bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
|
857 |
161 |
khays |
bfd_elf64_k1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
|
858 |
|
|
bfd_elf64_k1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
|
859 |
14 |
khays |
bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
|
860 |
|
|
bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
|
861 |
|
|
bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
|
862 |
|
|
bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
|
863 |
|
|
bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
|
864 |
|
|
cris_aout_vec) tb="$tb aout-cris.lo" ;;
|
865 |
|
|
demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
|
866 |
|
|
ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
867 |
|
|
ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
868 |
|
|
ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
869 |
|
|
ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
|
870 |
|
|
go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
|
871 |
|
|
go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
|
872 |
|
|
h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
|
873 |
|
|
h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
|
874 |
|
|
host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
|
875 |
|
|
hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
|
876 |
|
|
hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
|
877 |
|
|
i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
|
878 |
|
|
i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
|
879 |
|
|
i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
|
880 |
|
|
x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
|
881 |
|
|
i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
|
882 |
|
|
i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
|
883 |
|
|
i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
|
884 |
|
|
i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
|
885 |
|
|
i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
|
886 |
|
|
i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
|
887 |
|
|
i386msdos_vec) tb="$tb i386msdos.lo" ;;
|
888 |
|
|
i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
|
889 |
|
|
i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
|
890 |
|
|
i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
|
891 |
|
|
i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
|
892 |
|
|
x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
|
893 |
|
|
x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
|
894 |
|
|
i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
|
895 |
|
|
icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
|
896 |
|
|
icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
|
897 |
|
|
ieee_vec) tb="$tb ieee.lo" ;;
|
898 |
|
|
m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
|
899 |
|
|
m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
|
900 |
|
|
m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
|
901 |
|
|
m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
|
902 |
|
|
m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
|
903 |
|
|
m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
|
904 |
|
|
m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
|
905 |
|
|
m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
|
906 |
|
|
m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
|
907 |
|
|
m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
|
908 |
|
|
mach_o_be_vec) tb="$tb mach-o.lo" ;;
|
909 |
|
|
mach_o_le_vec) tb="$tb mach-o.lo" ;;
|
910 |
|
|
mach_o_fat_vec) tb="$tb mach-o.lo" ;;
|
911 |
|
|
mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;;
|
912 |
|
|
mach_o_x86_64_vec) tb="$tb mach-o-x86-64.lo" ;;
|
913 |
|
|
mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
|
914 |
|
|
mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
|
915 |
|
|
mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
|
916 |
|
|
mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
|
917 |
|
|
mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
|
918 |
|
|
mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
|
919 |
|
|
newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
|
920 |
|
|
nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
|
921 |
|
|
nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
|
922 |
|
|
nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
|
923 |
|
|
nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
|
924 |
|
|
or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
|
925 |
|
|
pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
|
926 |
|
|
pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
|
927 |
|
|
pef_vec) tb="$tb pef.lo" ;;
|
928 |
|
|
pef_xlib_vec) tb="$tb pef.lo" ;;
|
929 |
|
|
pdp11_aout_vec) tb="$tb pdp11.lo" ;;
|
930 |
|
|
plugin_vec) tb="$tb plugin.lo" ;;
|
931 |
|
|
pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
|
932 |
|
|
ppcboot_vec) tb="$tb ppcboot.lo" ;;
|
933 |
|
|
riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
|
934 |
|
|
rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
|
935 |
|
|
rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
|
936 |
|
|
shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
937 |
|
|
shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
938 |
|
|
shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
939 |
|
|
shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
940 |
|
|
shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
|
941 |
|
|
shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
|
942 |
|
|
som_vec) tb="$tb som.lo" ;;
|
943 |
|
|
sparccoff_vec) tb="$tb coff-sparc.lo" ;;
|
944 |
|
|
sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
|
945 |
|
|
sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
|
946 |
|
|
sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
|
947 |
|
|
sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
|
948 |
|
|
sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
|
949 |
|
|
sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
|
950 |
|
|
sym_vec) tb="$tb xsym.lo" ;;
|
951 |
|
|
tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
|
952 |
|
|
tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
|
953 |
|
|
tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
|
954 |
|
|
tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
|
955 |
|
|
tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
|
956 |
|
|
tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
|
957 |
|
|
tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
|
958 |
|
|
tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
|
959 |
|
|
tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
960 |
|
|
tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
|
961 |
|
|
tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
962 |
|
|
tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
|
963 |
|
|
tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
964 |
|
|
tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
|
965 |
|
|
tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
|
966 |
|
|
vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
|
967 |
|
|
vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
|
968 |
|
|
vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
|
969 |
|
|
versados_vec) tb="$tb versados.lo" ;;
|
970 |
|
|
vms_alpha_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
|
971 |
|
|
vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
|
972 |
|
|
w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
|
973 |
|
|
we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
|
974 |
|
|
z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
|
975 |
|
|
z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
|
976 |
|
|
|
977 |
|
|
# These appear out of order in targets.c
|
978 |
|
|
srec_vec) tb="$tb srec.lo" ;;
|
979 |
|
|
symbolsrec_vec) tb="$tb srec.lo" ;;
|
980 |
|
|
tekhex_vec) tb="$tb tekhex.lo" ;;
|
981 |
|
|
cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
|
982 |
|
|
cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
|
983 |
|
|
|
984 |
|
|
"") ;;
|
985 |
|
|
*) AC_MSG_ERROR(*** unknown target vector $vec) ;;
|
986 |
|
|
esac
|
987 |
|
|
|
988 |
|
|
if test ${target_size} = 64; then
|
989 |
|
|
target64=true
|
990 |
|
|
fi
|
991 |
|
|
if test x"${vec}" = x"${defvec}"; then
|
992 |
|
|
bfd_default_target_size=${target_size}
|
993 |
|
|
fi
|
994 |
|
|
done
|
995 |
|
|
|
996 |
|
|
# Target architecture .o files.
|
997 |
|
|
# A couple of CPUs use shorter file names to avoid problems on DOS
|
998 |
|
|
# filesystems.
|
999 |
|
|
ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
|
1000 |
|
|
|
1001 |
|
|
# Weed out duplicate .o files.
|
1002 |
|
|
f=""
|
1003 |
|
|
for i in $tb ; do
|
1004 |
|
|
case " $f " in
|
1005 |
|
|
*" $i "*) ;;
|
1006 |
|
|
*) f="$f $i" ;;
|
1007 |
|
|
esac
|
1008 |
|
|
done
|
1009 |
|
|
tb="$f"
|
1010 |
|
|
|
1011 |
|
|
f=""
|
1012 |
|
|
for i in $ta ; do
|
1013 |
|
|
case " $f " in
|
1014 |
|
|
*" $i "*) ;;
|
1015 |
|
|
*) f="$f $i" ;;
|
1016 |
|
|
esac
|
1017 |
|
|
done
|
1018 |
|
|
ta="$f"
|
1019 |
|
|
|
1020 |
|
|
bfd_backends="$tb"
|
1021 |
|
|
bfd_machines="$ta"
|
1022 |
|
|
|
1023 |
|
|
if test x${all_targets} = xtrue ; then
|
1024 |
|
|
bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
|
1025 |
|
|
bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
|
1026 |
|
|
selvecs=
|
1027 |
|
|
havevecs=-DHAVE_all_vecs
|
1028 |
|
|
selarchs=
|
1029 |
|
|
test -n "$assocvecs" &&
|
1030 |
|
|
assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
1031 |
|
|
else # all_targets is true
|
1032 |
|
|
# Only set these if they will be nonempty, for the clever echo.
|
1033 |
|
|
havevecs=
|
1034 |
|
|
assocvecs=
|
1035 |
|
|
test -n "$selvecs" &&
|
1036 |
|
|
havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
|
1037 |
|
|
test -n "$selvecs" &&
|
1038 |
|
|
selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
1039 |
|
|
test -n "$selarchs" &&
|
1040 |
|
|
selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
1041 |
|
|
fi # all_targets is true
|
1042 |
|
|
|
1043 |
|
|
case ${host64}-${target64}-${want64} in
|
1044 |
|
|
*true*)
|
1045 |
|
|
wordsize=64
|
1046 |
|
|
bfd64_libs='$(BFD64_LIBS)'
|
1047 |
|
|
all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
|
1048 |
|
|
if test $BFD_HOST_64_BIT_DEFINED = 0; then
|
1049 |
|
|
AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
|
1050 |
|
|
AC_MSG_WARN([your compiler may not have a 64 bit integral type])
|
1051 |
|
|
fi
|
1052 |
|
|
if test -n "$GCC" ; then
|
1053 |
|
|
bad_64bit_gcc=no;
|
1054 |
|
|
AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
|
1055 |
|
|
# Add more tests for gcc versions with non-working 64-bit support here.
|
1056 |
|
|
AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
|
1057 |
|
|
bad_64bit_gcc=yes;
|
1058 |
|
|
AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
|
1059 |
|
|
AC_MSG_RESULT(no))
|
1060 |
|
|
if test $bad_64bit_gcc = yes ; then
|
1061 |
|
|
AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
|
1062 |
|
|
fi
|
1063 |
|
|
fi
|
1064 |
|
|
;;
|
1065 |
|
|
false-false-false)
|
1066 |
|
|
wordsize=32
|
1067 |
|
|
all_backends='$(BFD32_BACKENDS)'
|
1068 |
|
|
;;
|
1069 |
|
|
esac
|
1070 |
|
|
|
1071 |
|
|
AC_SUBST(wordsize)
|
1072 |
|
|
AC_SUBST(bfd64_libs)
|
1073 |
|
|
AC_SUBST(all_backends)
|
1074 |
|
|
AC_SUBST(bfd_backends)
|
1075 |
|
|
AC_SUBST(bfd_machines)
|
1076 |
|
|
AC_SUBST(bfd_default_target_size)
|
1077 |
|
|
|
1078 |
|
|
if test "$plugins" = "yes"; then
|
1079 |
|
|
supports_plugins=1
|
1080 |
|
|
else
|
1081 |
|
|
supports_plugins=0
|
1082 |
|
|
fi
|
1083 |
|
|
AC_SUBST(supports_plugins)
|
1084 |
|
|
|
1085 |
|
|
# Determine the host dependant file_ptr a.k.a. off_t type. In order
|
1086 |
|
|
# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
|
1087 |
|
|
# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
|
1088 |
|
|
# Hopefully a reasonable assumption since fseeko et.al. should be
|
1089 |
|
|
# upward compatible.
|
1090 |
|
|
AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64)
|
1091 |
|
|
if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
|
1092 |
|
|
AC_CHECK_SIZEOF(off_t)
|
1093 |
|
|
fi
|
1094 |
|
|
AC_MSG_CHECKING([file_ptr type])
|
1095 |
|
|
bfd_file_ptr="long"
|
1096 |
|
|
bfd_ufile_ptr="unsigned long"
|
1097 |
|
|
if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
|
1098 |
|
|
-o x"${ac_cv_sizeof_off_t}" = x8; then
|
1099 |
|
|
bfd_file_ptr=BFD_HOST_64_BIT
|
1100 |
|
|
bfd_ufile_ptr=BFD_HOST_U_64_BIT
|
1101 |
|
|
fi
|
1102 |
|
|
AC_MSG_RESULT($bfd_file_ptr)
|
1103 |
|
|
AC_SUBST(bfd_file_ptr)
|
1104 |
|
|
AC_SUBST(bfd_ufile_ptr)
|
1105 |
|
|
|
1106 |
|
|
|
1107 |
|
|
tdefaults=""
|
1108 |
|
|
test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
|
1109 |
|
|
test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
|
1110 |
|
|
test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
|
1111 |
|
|
test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
|
1112 |
|
|
AC_SUBST(tdefaults)
|
1113 |
|
|
AC_SUBST(havevecs)
|
1114 |
|
|
|
1115 |
|
|
dnl AC_CHECK_HEADERS(sys/mman.h)
|
1116 |
|
|
AC_FUNC_MMAP
|
1117 |
|
|
AC_CHECK_FUNCS(madvise mprotect)
|
1118 |
|
|
case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
|
1119 |
|
|
true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
|
1120 |
|
|
esac
|
1121 |
|
|
|
1122 |
|
|
rm -f doc/config.status
|
1123 |
|
|
AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in])
|
1124 |
|
|
|
1125 |
|
|
dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of
|
1126 |
|
|
dnl our two separate POTFILES. Yuck.
|
1127 |
|
|
AC_CONFIG_COMMANDS([default],
|
1128 |
|
|
[[
|
1129 |
|
|
case "$srcdir" in
|
1130 |
|
|
.) srcdirpre= ;;
|
1131 |
|
|
*) srcdirpre='$(srcdir)/' ;;
|
1132 |
|
|
esac
|
1133 |
|
|
POFILES=
|
1134 |
|
|
GMOFILES=
|
1135 |
|
|
for lang in dummy $OBSOLETE_ALL_LINGUAS; do
|
1136 |
|
|
if test $lang != dummy; then
|
1137 |
|
|
POFILES="$POFILES $srcdirpre$lang.po"
|
1138 |
|
|
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
|
1139 |
|
|
fi
|
1140 |
|
|
done
|
1141 |
|
|
sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
|
1142 |
|
|
-e '/BLD-POTFILES =/r po/BLD-POTFILES' \
|
1143 |
|
|
-e "s,@POFILES@,$POFILES," \
|
1144 |
|
|
-e "s,@GMOFILES@,$GMOFILES," \
|
1145 |
|
|
po/Makefile.in > po/Makefile]],[[]])
|
1146 |
|
|
|
1147 |
|
|
dnl Required by html, pdf, install-pdf and install-html
|
1148 |
|
|
AC_SUBST(datarootdir)
|
1149 |
|
|
AC_SUBST(docdir)
|
1150 |
|
|
AC_SUBST(htmldir)
|
1151 |
|
|
AC_SUBST(pdfdir)
|
1152 |
|
|
|
1153 |
|
|
AC_OUTPUT
|
1154 |
|
|
|