1999-05-03 15:29:11 +08:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_PREREQ(2.13)
|
|
|
|
AC_INIT(libbfd.c)
|
|
|
|
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AC_ISC_POSIX
|
|
|
|
|
2001-09-29 20:07:01 +08:00
|
|
|
AM_INIT_AUTOMAKE(bfd, 2.11.92)
|
2001-10-02 13:58:41 +08:00
|
|
|
# Uncomment the next line to remove the date from the reported bfd version
|
|
|
|
#is_release=y
|
|
|
|
|
|
|
|
changequote(,)dnl
|
|
|
|
bfd_version=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'`
|
|
|
|
changequote([,])dnl
|
|
|
|
|
|
|
|
bfd_version_string="\"${VERSION}\""
|
|
|
|
bfd_version_date=`sed -e 's/.*DATE //' < ${srcdir}/version.h`
|
|
|
|
if test x${is_release} = x; then
|
|
|
|
dnl Sad, but we can't use XSTRING here to pick up the date from version.h
|
|
|
|
dnl because traditional C doesn't allow it.
|
|
|
|
bfd_version_string="\"${VERSION} ${bfd_version_date}\""
|
|
|
|
fi
|
|
|
|
dnl Since we need to edit bfd-in3.h to get the date for bfd_version_string,
|
|
|
|
dnl we may as well substitute for bfd_version_date too. That way we don't
|
|
|
|
dnl need to #include version.h
|
|
|
|
AC_SUBST(bfd_version)
|
|
|
|
AC_SUBST(bfd_version_date)
|
|
|
|
AC_SUBST(bfd_version_string)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
dnl These must be called before AM_PROG_LIBTOOL, because it may want
|
|
|
|
dnl to call AC_CHECK_PROG.
|
|
|
|
AC_CHECK_TOOL(AR, ar)
|
|
|
|
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
|
|
|
|
|
|
|
dnl Default to a non shared library. This may be overridden by the
|
|
|
|
dnl configure option --enable-shared.
|
|
|
|
AM_DISABLE_SHARED
|
|
|
|
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(64-bit-bfd,
|
|
|
|
[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) want64=true ;;
|
|
|
|
no) want64=false ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
|
|
|
|
esac],[want64=false])dnl
|
|
|
|
AC_ARG_ENABLE(targets,
|
|
|
|
[ --enable-targets alternative target configurations],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes | "") AC_ERROR(enable-targets option must specify target names or 'all')
|
|
|
|
;;
|
|
|
|
no) enable_targets= ;;
|
|
|
|
*) enable_targets=$enableval ;;
|
|
|
|
esac])dnl
|
|
|
|
AC_ARG_ENABLE(commonbfdlib,
|
|
|
|
[ --enable-commonbfdlib build shared BFD/opcodes/libiberty library],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) commonbfdlib=true ;;
|
|
|
|
no) commonbfdlib=false ;;
|
|
|
|
*) AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;;
|
|
|
|
esac])dnl
|
|
|
|
AC_ARG_WITH(mmap,
|
|
|
|
[ --with-mmap try using mmap for BFD input files if available],
|
|
|
|
[case "${withval}" in
|
|
|
|
yes) want_mmap=true ;;
|
|
|
|
no) want_mmap=false ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
|
|
|
|
esac],[want_mmap=false])dnl
|
|
|
|
|
2001-08-10 18:56:47 +08:00
|
|
|
build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
2000-04-09 20:17:43 +08:00
|
|
|
AC_ARG_ENABLE(build-warnings,
|
|
|
|
[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) ;;
|
|
|
|
no) build_warnings="-w";;
|
|
|
|
,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|
|
|
build_warnings="${build_warnings} ${t}";;
|
|
|
|
*,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|
|
|
build_warnings="${t} ${build_warnings}";;
|
|
|
|
*) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
|
|
|
esac
|
|
|
|
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
|
|
|
echo "Setting warning flags = $build_warnings" 6>&1
|
|
|
|
fi])dnl
|
|
|
|
WARN_CFLAGS=""
|
|
|
|
if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
|
|
|
|
WARN_CFLAGS="${build_warnings}"
|
|
|
|
fi
|
|
|
|
AC_SUBST(WARN_CFLAGS)
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
AM_CONFIG_HEADER(config.h:config.in)
|
|
|
|
|
|
|
|
if test -z "$target" ; then
|
|
|
|
AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
AC_EXEEXT
|
|
|
|
|
|
|
|
host64=false
|
|
|
|
target64=false
|
2001-08-17 11:54:53 +08:00
|
|
|
bfd_default_target_size=32
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
# host stuff:
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
|
2001-12-03 18:46:36 +08:00
|
|
|
ALL_LINGUAS="fr tr"
|
1999-05-03 15:29:11 +08:00
|
|
|
CY_GNU_GETTEXT
|
|
|
|
|
|
|
|
# Permit host specific settings.
|
|
|
|
. ${srcdir}/configure.host
|
|
|
|
|
|
|
|
AC_SUBST(HDEFINES)
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
BFD_HOST_64BIT_LONG=0
|
|
|
|
BFD_HOST_64_BIT_DEFINED=0
|
|
|
|
BFD_HOST_64_BIT=
|
|
|
|
BFD_HOST_U_64_BIT=
|
|
|
|
if test "x${HOST_64BIT_TYPE}" = "xlong"; then
|
|
|
|
BFD_HOST_64BIT_LONG=1
|
|
|
|
elif test "x${HOST_64BIT_TYPE}" != "x"; then
|
|
|
|
BFD_HOST_64_BIT_DEFINED=1
|
|
|
|
BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
|
|
|
|
BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
|
|
|
|
fi
|
|
|
|
AC_SUBST(BFD_HOST_64BIT_LONG)
|
|
|
|
AC_SUBST(BFD_HOST_64_BIT_DEFINED)
|
|
|
|
AC_SUBST(BFD_HOST_64_BIT)
|
|
|
|
AC_SUBST(BFD_HOST_U_64_BIT)
|
|
|
|
|
|
|
|
BFD_CC_FOR_BUILD
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
|
|
|
|
AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h)
|
|
|
|
AC_HEADER_TIME
|
|
|
|
AC_HEADER_DIRENT
|
1999-05-28 06:48:53 +08:00
|
|
|
AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
BFD_BINARY_FOPEN
|
|
|
|
|
|
|
|
BFD_NEED_DECLARATION(strstr)
|
|
|
|
BFD_NEED_DECLARATION(malloc)
|
|
|
|
BFD_NEED_DECLARATION(realloc)
|
|
|
|
BFD_NEED_DECLARATION(free)
|
|
|
|
BFD_NEED_DECLARATION(getenv)
|
|
|
|
|
|
|
|
# If we are configured native, pick a core file support file.
|
|
|
|
COREFILE=
|
|
|
|
COREFLAG=
|
|
|
|
TRAD_HEADER=
|
|
|
|
if test "${target}" = "${host}"; then
|
|
|
|
case "${host}" in
|
2000-11-06 07:31:45 +08:00
|
|
|
alpha*-*-freebsd*)
|
|
|
|
COREFILE=''
|
|
|
|
;;
|
1999-05-03 15:29:11 +08:00
|
|
|
alpha*-*-linux-gnu*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/alphalinux.h"'
|
|
|
|
;;
|
|
|
|
alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
|
|
|
alpha*-*-*) COREFILE=osf-core.lo ;;
|
2001-02-19 14:33:41 +08:00
|
|
|
arm-*-freebsd*) COREFILE='' ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
arm-*-riscix) COREFILE=trad-core.lo ;;
|
|
|
|
hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
|
|
|
|
hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
|
|
|
|
hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
|
|
|
|
hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
|
|
|
|
COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
i370-*-*)
|
2000-02-23 21:52:23 +08:00
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/i370linux.h"'
|
|
|
|
;;
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
changequote(,)dnl
|
|
|
|
i[3456]86-sequent-bsd*)
|
|
|
|
changequote([,])dnl
|
2000-02-23 21:52:23 +08:00
|
|
|
COREFILE=trad-core.lo
|
1999-05-03 15:29:11 +08:00
|
|
|
TRAD_HEADER='"hosts/symmetry.h"'
|
|
|
|
;;
|
|
|
|
changequote(,)dnl
|
|
|
|
i[3456]86-sequent-sysv4*) ;;
|
|
|
|
i[3456]86-sequent-sysv*)
|
|
|
|
changequote([,])dnl
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/symmetry.h"'
|
|
|
|
;;
|
2001-08-23 22:33:50 +08:00
|
|
|
changequote(,)dnl
|
|
|
|
i[3456]86-*-bsdi)
|
|
|
|
changequote([,])dnl
|
|
|
|
COREFILE=
|
|
|
|
;;
|
1999-05-03 15:29:11 +08:00
|
|
|
changequote(,)dnl
|
2001-02-19 14:33:41 +08:00
|
|
|
i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*)
|
1999-05-03 15:29:11 +08:00
|
|
|
changequote([,])dnl
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/i386bsd.h"'
|
|
|
|
;;
|
2001-02-19 14:33:41 +08:00
|
|
|
changequote(,)dnl
|
|
|
|
i[3456]86-*-freebsd*)
|
|
|
|
changequote([,])dnl
|
|
|
|
COREFILE=''
|
|
|
|
TRAD_HEADER='"hosts/i386bsd.h"'
|
|
|
|
;;
|
1999-05-03 15:29:11 +08:00
|
|
|
changequote(,)dnl
|
|
|
|
i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
|
|
|
|
changequote([,])dnl
|
|
|
|
COREFILE=netbsd-core.lo
|
|
|
|
;;
|
|
|
|
changequote(,)dnl
|
|
|
|
i[3456]86-esix-sysv3*)
|
|
|
|
changequote([,])dnl
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/esix.h"'
|
|
|
|
;;
|
|
|
|
changequote(,)dnl
|
|
|
|
i[3456]86-*-sco3.2v5*)
|
|
|
|
changequote([,])dnl
|
|
|
|
COREFILE=sco5-core.lo
|
|
|
|
;;
|
|
|
|
changequote(,)dnl
|
|
|
|
i[3456]86-*-sco* | i[3456]86-*-isc*)
|
|
|
|
changequote([,])dnl
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/i386sco.h"'
|
|
|
|
;;
|
|
|
|
changequote(,)dnl
|
|
|
|
i[3456]86-*-mach3*)
|
|
|
|
changequote([,])dnl
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/i386mach3.h"'
|
|
|
|
;;
|
|
|
|
changequote(,)dnl
|
|
|
|
i[3456]86-*-linux-gnu*)
|
|
|
|
changequote([,])dnl
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/i386linux.h"'
|
|
|
|
;;
|
|
|
|
changequote(,)dnl
|
|
|
|
i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
|
|
|
|
i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
|
|
|
|
changequote([,])dnl
|
|
|
|
i860-*-mach3* | i860-*-osf1*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/i860mach3.h"'
|
|
|
|
;;
|
|
|
|
mips-dec-bsd*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/mipsbsd.h"'
|
|
|
|
;;
|
|
|
|
mips-dec-mach3*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/mipsmach3.h"'
|
|
|
|
;;
|
|
|
|
mips-*-netbsd* | mips*-*-openbsd*)
|
|
|
|
COREFILE=netbsd-core.lo
|
|
|
|
;;
|
|
|
|
mips-dec-*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/decstation.h"'
|
|
|
|
;;
|
|
|
|
mips-sgi-irix4*) COREFILE=irix-core.lo ;;
|
|
|
|
mips-sgi-irix5*) COREFILE=irix-core.lo ;;
|
|
|
|
mips-sgi-irix6*) COREFILE=irix-core.lo ;;
|
|
|
|
mips-*-mach3*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/mipsmach3.h"'
|
|
|
|
;;
|
|
|
|
mips-*-sysv4*) ;;
|
|
|
|
mips-*-sysv* | mips-*-riscos*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/riscos.h"'
|
|
|
|
;;
|
|
|
|
mips-sony-bsd*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/news-mips.h"'
|
|
|
|
;;
|
|
|
|
m68*-bull*-sysv*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/dpx2.h"'
|
|
|
|
;;
|
|
|
|
m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
|
|
|
|
m68*-hp-bsd*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/hp300bsd.h"'
|
|
|
|
;;
|
|
|
|
m68*-*-linux-gnu*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/m68klinux.h"'
|
|
|
|
;;
|
|
|
|
m68*-motorola-sysv*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/delta68.h"'
|
|
|
|
;;
|
|
|
|
m68*-sony-*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/news.h"'
|
|
|
|
;;
|
|
|
|
m68*-*-netbsd* | m68*-*-openbsd*)
|
|
|
|
COREFILE=netbsd-core.lo
|
|
|
|
;;
|
|
|
|
m68*-apple-aux*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/m68kaux.h"'
|
|
|
|
;;
|
|
|
|
m88*-*-sysv4*) ;;
|
|
|
|
m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;;
|
|
|
|
m88*-*-mach3*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/m88kmach3.h"'
|
|
|
|
;;
|
|
|
|
ns32k-pc532-mach)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/pc532mach.h"'
|
|
|
|
;;
|
|
|
|
ns32k-*-netbsd* | ns32k-*-openbsd*)
|
|
|
|
COREFILE=netbsd-core.lo
|
|
|
|
;;
|
|
|
|
rs6000-*-lynx*) COREFILE=lynx-core.lo ;;
|
2000-04-04 05:48:31 +08:00
|
|
|
changequote(,)dnl
|
|
|
|
rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
|
|
|
|
changequote([,])dnl
|
|
|
|
COREFILE=rs6000-core.lo
|
|
|
|
COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
|
|
|
|
;;
|
1999-05-03 15:29:11 +08:00
|
|
|
rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
|
|
|
|
rs6000-*-*) COREFILE=rs6000-core.lo ;;
|
|
|
|
powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
|
|
|
|
powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
|
|
|
|
powerpc-*-beos*) ;;
|
2001-02-19 14:33:41 +08:00
|
|
|
powerpc-*-freebsd*) COREFILE='' ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
2001-02-19 14:33:41 +08:00
|
|
|
powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
s390*-*-*) COREFILE=trad-core.lo ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
sparc-*-netbsd* | sparc-*-openbsd*)
|
|
|
|
COREFILE=netbsd-core.lo
|
|
|
|
;;
|
|
|
|
tahoe-*-*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/tahoe.h"'
|
|
|
|
;;
|
|
|
|
vax-*-ultrix2*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/vaxult2.h"'
|
|
|
|
;;
|
|
|
|
vax-*-ultrix*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/vaxult2.h"'
|
|
|
|
;;
|
|
|
|
vax-*-*)
|
|
|
|
COREFILE=trad-core.lo
|
|
|
|
TRAD_HEADER='"hosts/vaxbsd.h"'
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
case "$COREFILE" in
|
|
|
|
aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
|
|
|
|
hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
|
|
|
|
hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
|
|
|
|
irix-core.lo) COREFLAG=-DIRIX_CORE ;;
|
|
|
|
lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
|
|
|
|
netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
|
|
|
|
osf-core.lo) COREFLAG=-DOSF_CORE ;;
|
|
|
|
ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
|
|
|
|
rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
|
|
|
|
sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
|
|
|
|
trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# ELF corefile support has several flavors, but all of
|
|
|
|
# them use something called <sys/procfs.h>
|
|
|
|
AC_CHECK_HEADERS(sys/procfs.h)
|
|
|
|
if test "$ac_cv_header_sys_procfs_h" = yes; then
|
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
|
2000-08-31 02:12:21 +08:00
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
|
1999-05-03 15:29:11 +08:00
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
|
2000-08-31 02:12:21 +08:00
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
|
1999-05-03 15:29:11 +08:00
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
|
2000-09-30 08:44:49 +08:00
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
|
2000-08-31 02:12:21 +08:00
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
|
1999-05-03 15:29:11 +08:00
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
|
2000-08-31 02:12:21 +08:00
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
|
1999-05-03 15:29:11 +08:00
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
|
2000-08-31 02:12:21 +08:00
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
|
1999-05-03 15:29:11 +08:00
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
|
2000-09-30 08:44:49 +08:00
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
|
1999-05-03 15:29:11 +08:00
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
|
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
|
2000-01-11 02:50:16 +08:00
|
|
|
BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
|
1999-05-03 15:29:11 +08:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_SUBST(COREFILE)
|
|
|
|
AC_SUBST(COREFLAG)
|
2000-05-02 08:12:52 +08:00
|
|
|
if test -n "$TRAD_HEADER"; then
|
|
|
|
AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
|
|
|
|
[Name of host specific header file to include in trad-core.c.])
|
|
|
|
fi
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
# Horrible hacks to build DLLs on Windows.
|
|
|
|
WIN32LDFLAGS=
|
|
|
|
WIN32LIBADD=
|
|
|
|
case "${host}" in
|
|
|
|
*-*-cygwin*)
|
|
|
|
if test "$enable_shared" = "yes"; then
|
|
|
|
WIN32LDFLAGS="-no-undefined"
|
|
|
|
WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
|
|
|
|
fi
|
|
|
|
;;
|
2001-10-22 08:40:48 +08:00
|
|
|
*-*-linux*)
|
2001-10-21 14:51:03 +08:00
|
|
|
# We borrow WIN32LIBADD so that the shared libbfd won't depend on
|
|
|
|
# libiberty.a.
|
2001-10-23 02:45:35 +08:00
|
|
|
case "${host}" in
|
|
|
|
mips*-*-linux*)
|
|
|
|
# Linux/MIPS uses PIC by default.
|
|
|
|
if test "$enable_shared" = "yes"; then
|
|
|
|
WIN32LIBADD="-L../libiberty -liberty"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
PICFLAG=
|
|
|
|
changequote(,)dnl
|
|
|
|
eval `grep "^[ ]*PICFLAG[ ]*=" ../libiberty/Makefile | sed -e "s/[ ]*//g"`
|
|
|
|
changequote([,])dnl
|
|
|
|
if test -n "$PICFLAG"; then
|
|
|
|
WIN32LIBADD="-L../libiberty/pic -liberty"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
2001-10-21 14:51:03 +08:00
|
|
|
;;
|
1999-05-03 15:29:11 +08:00
|
|
|
esac
|
|
|
|
AC_SUBST(WIN32LDFLAGS)
|
|
|
|
AC_SUBST(WIN32LIBADD)
|
|
|
|
|
|
|
|
# target stuff:
|
|
|
|
|
|
|
|
# Canonicalize the secondary target names.
|
|
|
|
if test -n "$enable_targets" ; then
|
|
|
|
for targ in `echo $enable_targets | sed 's/,/ /g'`
|
|
|
|
do
|
1999-09-15 07:29:35 +08:00
|
|
|
result=`$ac_config_sub $targ 2>/dev/null`
|
1999-05-03 15:29:11 +08:00
|
|
|
if test -n "$result" ; then
|
|
|
|
canon_targets="$canon_targets $result"
|
|
|
|
else
|
|
|
|
# Allow targets that config.sub doesn't recognize, like "all".
|
|
|
|
canon_targets="$canon_targets $targ"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
all_targets=false
|
|
|
|
defvec=
|
|
|
|
selvecs=
|
|
|
|
selarchs=
|
|
|
|
TDEFINES=
|
|
|
|
for targ in $target $canon_targets
|
|
|
|
do
|
|
|
|
if test "x$targ" = "xall"; then
|
|
|
|
all_targets=true
|
|
|
|
else
|
|
|
|
. $srcdir/config.bfd
|
|
|
|
if test "x$targ" = "x$target"; then
|
|
|
|
defvec=$targ_defvec
|
|
|
|
fi
|
|
|
|
selvecs="$selvecs $targ_defvec $targ_selvecs"
|
|
|
|
selarchs="$selarchs $targ_archs"
|
|
|
|
TDEFINES="$TDEFINES $targ_cflags"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
AC_SUBST(TDEFINES)
|
|
|
|
|
|
|
|
# This processing still needs to be done if we're to decide properly whether
|
|
|
|
# 64-bit support needs to be compiled in. Currently, it will be included if
|
|
|
|
# the default or any other explicitly requested target requires it; it
|
|
|
|
# will not be included on a 32-bit host if no 64-bit target is requested, and
|
1999-09-20 06:43:16 +08:00
|
|
|
# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
|
1999-05-03 15:29:11 +08:00
|
|
|
# used.
|
|
|
|
|
|
|
|
# uniq the default and selected vectors in all the configured targets.
|
|
|
|
f=""
|
|
|
|
for i in $selvecs ; do
|
|
|
|
case " $f " in
|
|
|
|
*" $i "*) ;;
|
|
|
|
*) f="$f $i" ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
selvecs="$f"
|
|
|
|
|
|
|
|
|
|
|
|
# uniq the architectures in all the configured targets.
|
|
|
|
f=""
|
|
|
|
for i in $selarchs ; do
|
|
|
|
case " $f " in
|
|
|
|
*" $i "*) ;;
|
|
|
|
*) f="$f $i" ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
selarchs="$f"
|
|
|
|
|
|
|
|
# Target backend .o files.
|
|
|
|
tb=
|
|
|
|
|
* Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo.
(BFD32_BACKENDS_CFILES): Add elf-strtab.c.
(elf-strtab.lo): Add rule.
* Makefile.in: Rebuilt.
* configure.in (elf): Add elf-strtab.lo.
* configure: Rebuilt.
* elf-bfd.h (elf_strtab_hash): Forward declare.
(struct elf_link_hash_table): Change dynstr type to
struct elf_strtab_hash *.
(struct elf_obj_tdata): Change strtab_ptr type to
struct elf_strtab_hash *.
(_bfd_elf_strtab_init, _bfd_elf_strtab_free, _bfd_elf_strtab_add,
_bfd_elf_strtab_addref, _bfd_elf_strtab_delref,
_bfd_elf_strtab_clear_all_refs, _bfd_elf_strtab_size,
_bfd_elf_strtab_offset, _bfd_elf_strtab_emit,
_bfd_elf_strtab_finalize): New prototypes.
* elf-strtab.c: New file.
* elflink.h (elf_link_add_object_symbols): Use _bfd_elf_strtab_add
and _bfd_elf_strtab_size instead of _bfd_stringtab calls.
Call _bfd_elf_strtab_delref if DT_NEEDED entry is not needed or
when forcing dynamic symbol to local.
(elf_link_create_dynamic_sections): Call
_bfd_elf_strtab_init instead of elf_stringtab_init.
(elf_link_record_local_dynamic_symbol): Likewise, change
dynstr type. Use _bfd_elf_strtab functions instead of
_bfd_stringtab calls.
(size_dynamic_sections): Use _bfd_elf_strtab functions instead of
_bfd_stringtab calls. For DT_RUNPATH and Verdaux vda_name fields,
call _bfd_elf_strtab_addref. Call elf_finalize_dynstr.
(elf_adjust_dynstr_offsets, elf_finalize_dynstr): New functions.
(elf_fix_symbol_flags): Call _bfd_elf_strtab_delref when forcing
dynamic symbol to local.
(elf_link_assign_sym_version): Likewise.
(elf_bfd_final_link): Call _bfd_elf_strtab_emit instead of
_bfd_stringtab_emit.
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Change dynstr
type. Call _bfd_elf_strtab functions instead of
_bfd_stringtab functions.
* elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
* elf.c (_bfd_elf_init_reloc_shdr): Likewise.
(elf_fake_sections): Likewise.
(assign_section_numbers): Call _bfd_elf_strtab_clear_all_refs
on shstrtab hash table, call _bfd_elf_strtab_addref on each section
name in the output. Call _bfd_elf_strtab_finalize and
use _bfd_elf_strtab_offset to finalize sh_name section header fields.
(_bfd_elf_compute_section_file_positions): Use _bfd_elf_strtab_size
instead of _bfd_stringtab_size.
(prep_headers): Change shstrtab type.
Use _bfd_elf_strtab calls instead of _bfd_stringtab calls.
2001-11-08 00:50:38 +08:00
|
|
|
elf="elf.lo elflink.lo elf-strtab.lo dwarf1.lo"
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
for vec in $selvecs
|
|
|
|
do
|
2001-08-17 11:54:53 +08:00
|
|
|
target_size=32
|
1999-05-03 15:29:11 +08:00
|
|
|
case "$vec" in
|
|
|
|
# This list is alphabetized to make it easy to compare
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
# with the two vector lists in targets.c. For the same reason,
|
|
|
|
# use one entry per line, even though this leads to long lines.
|
1999-05-03 15:29:11 +08:00
|
|
|
a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
|
|
|
|
a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
|
|
|
|
aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
|
|
|
|
aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
|
|
|
|
aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
|
|
|
|
aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
|
|
|
|
aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
|
|
|
|
apollocoff_vec) tb="$tb coff-apollo.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
|
|
|
|
arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
|
|
|
|
arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
|
|
|
|
arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
|
|
|
|
armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
|
|
|
|
armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
|
|
|
|
armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
|
|
|
|
armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
|
|
|
|
armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
|
|
|
|
armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
|
|
|
|
armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
|
|
|
|
b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
|
2000-04-18 12:03:16 +08:00
|
|
|
bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
|
2000-03-27 16:39:14 +08:00
|
|
|
bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
|
|
|
bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
2000-07-21 00:21:07 +08:00
|
|
|
bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
|
|
|
|
bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
|
|
|
|
bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
|
2001-08-29 09:33:52 +08:00
|
|
|
bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
|
|
|
bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
2000-02-23 21:52:23 +08:00
|
|
|
bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
|
2000-07-22 Jason Eckhardt <jle@cygnus.com>
* include/opcode/i860.h (btne, bte, bla): Changed these opcodes
to use sbroff ('r') instead of split16 ('s').
(J, K, L, M): New operand types for 16-bit aligned fields.
(ld.x, {p}fld.x, fst.x, pst.d): Changed these opcodes to
use I, J, K, L, M instead of just I.
(T, U): New operand types for split 16-bit aligned fields.
(st.x): Changed these opcodes to use S, T, U instead of just S.
(andh, andnoth, orh, xorh): Deleted 3-register forms as they do not
exist on the i860.
(pfgt.sd, pfle.sd): Deleted these as they do not exist on the i860.
(pfeq.ss, pfeq.dd): New opcodes.
(st.s): Fixed incorrect mask bits.
(fmlow): Fixed incorrect mask bits.
(fzchkl, pfzchkl): Fixed incorrect mask bits.
(faddz, pfaddz): Fixed incorrect mask bits.
(form, pform): Fixed incorrect mask bits.
(pfld.l): Fixed incorrect mask bits.
(fst.q): Fixed incorrect mask bits.
(all floating point opcodes): Fixed incorrect mask bits for
handling of dual bit.
* include/elf/i860.h: New file.
(elf_i860_reloc_type): Defined ELF32 i860 relocations.
* bfd/cpu-i860.c: Added comments.
* bfd/elf32-i860.c (TARGET_LITTLE_SYM): Defined to
bfd_elf32_i860_little_vec.
(TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
(ELF_MAXPAGESIZE): Changed to 4096.
* bfd/targets.c (bfd_elf32_i860_little_vec): Declaration of
new target.
(bfd_target_vector): Added bfd_elf32_i860_little_vec.
* bfd/config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
config for little endian elf32 i860.
(targ_defvec): Define for the new config above
as "bfd_elf32_i860_little_vec".
(targ_selvecs): Define for the new config above
as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
* bfd/configure.in (bfd_elf32_i860_little_vec): Added recognition
of new target vec.
* bfd/configure: Regenerated.
* opcodes/i860-dis.c: New file.
(print_insn_i860): New function.
(print_br_address): New function.
(sign_extend): New function.
(BITWISE_OP): New macro.
(I860_REG_PREFIX): New macro.
(grnames, frnames, crnames): New structures.
* opcodes/disassemble.c (ARCH_i860): Define.
(disassembler): Add check for bfd_arch_i860 to set disassemble
function to print_insn_i860.
* include/dis-asm.h (print_insn_i860): Add prototype.
* opcodes/Makefile.in (CFILES): Added i860-dis.c.
(ALL_MACHINES): Added i860-dis.lo.
(i860-dis.lo): New dependences.
* opcodes/configure.in: New bits for bfd_i860_arch.
* opcodes/configure: Regenerated.
2000-07-29 05:10:20 +08:00
|
|
|
bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
1999-05-28 05:42:14 +08:00
|
|
|
bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
|
|
|
bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
|
|
|
bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
|
|
|
bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
|
2000-06-19 09:22:44 +08:00
|
|
|
bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
|
|
|
|
bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
|
|
|
|
bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
|
|
|
|
bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
|
|
|
|
bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
|
|
|
|
bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
|
|
|
|
bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
|
2001-04-24 23:08:16 +08:00
|
|
|
bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
|
1999-09-05 01:07:46 +08:00
|
|
|
bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
|
|
|
bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
1999-05-03 15:29:11 +08:00
|
|
|
bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
|
|
|
bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
2001-02-10 08:58:38 +08:00
|
|
|
bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
bfd_elf32_shblin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
2000-09-07 12:23:43 +08:00
|
|
|
bfd_elf32_shlin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
|
2000-07-02 09:17:52 +08:00
|
|
|
bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
|
|
|
bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
|
2001-12-08 11:46:03 +08:00
|
|
|
bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
|
|
|
|
bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
|
|
|
|
bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
|
|
|
bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
|
|
|
|
bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
|
|
|
|
bfd_elf64_ia64_aix_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
|
|
|
bfd_elf64_ia64_aix_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
|
|
|
bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
|
|
|
bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
|
|
|
bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
|
|
|
|
bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
2001-10-30 23:20:14 +08:00
|
|
|
bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
|
|
|
|
bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
|
|
|
|
bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
|
|
|
|
bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
|
|
|
|
bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"; target_size=64 ;;
|
|
|
|
bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"; target_size=64 ;;
|
|
|
|
bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
|
2001-10-30 23:20:14 +08:00
|
|
|
bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
|
|
|
|
bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
|
|
|
|
bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
|
|
|
|
bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
|
1999-09-29 05:45:39 +08:00
|
|
|
cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
|
|
|
|
cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
|
2000-07-21 00:21:07 +08:00
|
|
|
cris_aout_vec) tb="$tb aout-cris.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
|
|
|
ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
|
|
|
ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
|
|
|
|
go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
|
|
|
|
h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
|
|
|
|
h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
|
|
|
|
host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
|
|
|
|
hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
|
|
|
|
hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
|
|
|
|
i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
|
|
|
|
i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
|
|
|
|
i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
|
|
|
|
i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
|
|
|
|
i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
|
|
|
|
i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
|
|
|
|
i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
|
|
|
|
i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
|
|
|
|
i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
i386msdos_vec) tb="$tb i386msdos.lo" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
|
|
|
|
i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
|
|
|
|
i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
|
|
|
|
icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
|
|
|
|
icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
|
|
|
|
ieee_vec) tb="$tb ieee.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
|
|
|
|
m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
|
|
|
|
m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
|
|
|
|
m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
|
|
|
|
m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
|
|
|
|
m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
|
|
|
|
m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
|
|
|
|
m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
|
|
|
|
m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
|
1999-09-12 07:37:28 +08:00
|
|
|
mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
|
|
|
|
mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
|
|
|
|
mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
|
|
|
|
mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
|
|
|
|
mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
|
|
|
|
nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
|
2001-02-19 07:33:11 +08:00
|
|
|
pdp11_aout_vec) tb="$tb pdp11.lo" ;;
|
2001-05-26 06:50:27 +08:00
|
|
|
pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
ppcboot_vec) tb="$tb ppcboot.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
|
|
|
|
rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo"; target_size=64 ;;
|
|
|
|
rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
2000-06-19 09:22:44 +08:00
|
|
|
shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
|
|
|
|
shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
som_vec) tb="$tb som.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
sparccoff_vec) tb="$tb coff-sparc.lo" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
|
|
|
|
sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
|
|
|
|
sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
|
|
|
|
sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
|
|
|
|
sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
|
|
|
|
srec_vec) tb="$tb srec.lo" ;;
|
|
|
|
sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
|
|
|
|
symbolsrec_vec) tb="$tb srec.lo" ;;
|
|
|
|
tekhex_vec) tb="$tb tekhex.lo" ;;
|
|
|
|
tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
|
|
|
|
tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
|
2000-04-08 01:06:58 +08:00
|
|
|
tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
|
2000-04-08 01:06:58 +08:00
|
|
|
tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
|
2000-04-08 01:06:58 +08:00
|
|
|
tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
|
|
|
|
versados_vec) tb="$tb versados.lo" ;;
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
|
1999-05-03 15:29:11 +08:00
|
|
|
vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
|
|
|
|
w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
|
|
|
|
we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
|
|
|
|
z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
|
|
|
|
|
|
|
|
"") ;;
|
|
|
|
*) AC_MSG_ERROR(*** unknown target vector $vec) ;;
|
|
|
|
esac
|
2001-08-17 11:54:53 +08:00
|
|
|
|
|
|
|
if test ${target_size} = 64; then
|
|
|
|
target64=true
|
|
|
|
fi
|
|
|
|
if test x"${vec}" = x"${defvec}"; then
|
|
|
|
bfd_default_target_size=${target_size}
|
|
|
|
fi
|
1999-05-03 15:29:11 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
# Target architecture .o files.
|
|
|
|
# A couple of CPUs use shorter file names to avoid problems on DOS
|
|
|
|
# filesystems.
|
|
|
|
ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
|
|
|
|
|
|
|
|
# Weed out duplicate .o files.
|
|
|
|
f=""
|
|
|
|
for i in $tb ; do
|
|
|
|
case " $f " in
|
|
|
|
*" $i "*) ;;
|
|
|
|
*) f="$f $i" ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
tb="$f"
|
|
|
|
|
|
|
|
f=""
|
|
|
|
for i in $ta ; do
|
|
|
|
case " $f " in
|
|
|
|
*" $i "*) ;;
|
|
|
|
*) f="$f $i" ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
ta="$f"
|
|
|
|
|
|
|
|
bfd_backends="$tb"
|
|
|
|
bfd_machines="$ta"
|
|
|
|
|
|
|
|
if test x${all_targets} = xtrue ; then
|
|
|
|
bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
|
|
|
|
bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
|
|
|
|
selvecs=
|
|
|
|
havevecs=
|
|
|
|
selarchs=
|
|
|
|
else # all_targets is true
|
|
|
|
# Only set these if they will be nonempty, for the clever echo.
|
|
|
|
havevecs=
|
|
|
|
test -n "$selvecs" &&
|
|
|
|
havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
|
|
|
|
test -n "$selvecs" &&
|
|
|
|
selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
|
|
|
test -n "$selarchs" &&
|
|
|
|
selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
|
|
|
fi # all_targets is true
|
|
|
|
|
|
|
|
case ${host64}-${target64}-${want64} in
|
|
|
|
*true*)
|
|
|
|
wordsize=64
|
2001-12-06 06:46:21 +08:00
|
|
|
bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
|
1999-05-03 15:29:11 +08:00
|
|
|
all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
|
|
|
|
if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
|
|
|
|
AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
|
|
|
|
AC_MSG_WARN([your compiler may not have a 64 bit integral type])
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
false-false-false)
|
|
|
|
wordsize=32
|
2001-12-06 06:46:21 +08:00
|
|
|
bfd_libs='$(BFD32_LIBS)'
|
1999-05-03 15:29:11 +08:00
|
|
|
all_backends='$(BFD32_BACKENDS)'
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
AC_SUBST(wordsize)
|
2001-12-06 06:46:21 +08:00
|
|
|
AC_SUBST(bfd_libs)
|
1999-05-03 15:29:11 +08:00
|
|
|
AC_SUBST(all_backends)
|
|
|
|
AC_SUBST(bfd_backends)
|
|
|
|
AC_SUBST(bfd_machines)
|
2001-08-17 11:54:53 +08:00
|
|
|
AC_SUBST(bfd_default_target_size)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
tdefaults=""
|
|
|
|
test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
|
|
|
|
test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
|
|
|
|
test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
|
|
|
|
test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
|
|
|
|
AC_SUBST(tdefaults)
|
|
|
|
|
|
|
|
dnl AC_CHECK_HEADERS(sys/mman.h)
|
|
|
|
AC_FUNC_MMAP
|
|
|
|
AC_CHECK_FUNCS(madvise mprotect)
|
|
|
|
case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
|
|
|
|
true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
rm -f doc/config.status
|
2001-10-03 20:29:10 +08:00
|
|
|
AC_OUTPUT(Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in,
|
2001-03-24 02:05:30 +08:00
|
|
|
[sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile])
|
|
|
|
|