aboutsummaryrefslogtreecommitdiff
path: root/bfd/config.bfd
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-10-03 21:36:08 +0000
committerIan Lance Taylor <ian@airs.com>1996-10-03 21:36:08 +0000
commitdee9979493130df7a1cc1cf7b53d5ca2229f6105 (patch)
treed9fd8dcc7f43ca8702847ebb3c8500079f88ae06 /bfd/config.bfd
parent6c9370db2abfc53aadaf7b97409fb5a2ea391d80 (diff)
downloadgdb-dee9979493130df7a1cc1cf7b53d5ca2229f6105.zip
gdb-dee9979493130df7a1cc1cf7b53d5ca2229f6105.tar.gz
gdb-dee9979493130df7a1cc1cf7b53d5ca2229f6105.tar.bz2
* configure.in: Add havevecs, and put it in tdefaults.
* mpw-config.in: Likewise. * configure: Rebuild. * targmatch.sed: New file; a sed script to build targmatch.h from config.bfd. * config.bfd: Add #if, #endif, and comments for targmatch.h. * targets.c: Include "fnmatch.h". (struct targmatch): Define. (bfd_target_match): Define by including targmatch.h. (bfd_find_target): If the target is not found by name, search for it as a configuration triplet. * Makefile.in: Rebuild dependencies. (BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o, i386dynix.o, m68k4knetbsd.o, and riscix.o. (BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c, hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c. (HFILES): Add targmatch.h. Also, alphabetize and reindent. (CFILES): Remove i386dynix.c and hp300bsd.c. (targmatch.h): New target. (do_clean): Remove targmatch.h. * configure.in: Add BFD_NEED_DECLARATION(getenv). * acconfig.h: Add NEED_DECLARATION_GETENV. * configure, config.in: Rebuild. * sysdep.h: If NEED_DECLARATION_GETENV, declare getenv. * aout-adobe.c (aout_adobe_object_p): Don't declare getenv.
Diffstat (limited to 'bfd/config.bfd')
-rwxr-xr-xbfd/config.bfd26
1 files changed, 18 insertions, 8 deletions
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 7c9b4ee..c876ea7 100755
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -9,6 +9,10 @@
# targ_cflags $(CFLAGS) for this target (FIXME: pretty bogus)
# targ_undercore Whether underscores are used: yes or no
+# Part of this file is processed by targmatch.sed to generate the
+# targmatch.h file. The #ifdef and #endif lines that appear below are
+# copied directly into targmatch.h.
+
# The binutils c++filt program wants to know whether underscores are
# stripped or not. That is why we set targ_underscore. c++filt uses
# this information to choose a default. This information is
@@ -43,6 +47,8 @@ esac
# convention, else the table becomes a real mess to understand and maintain.
case "${targ}" in
+# START OF targmatch.h
+#ifdef BFD64
alpha-*-netware*)
targ_defvec=ecoffalpha_little_vec
targ_selvecs=nlm32_alpha_vec
@@ -61,6 +67,7 @@ case "${targ}" in
alpha-*-*)
targ_defvec=ecoffalpha_little_vec
;;
+#endif /* BFD64 */
# start-sanitize-arc
arc-*-elf*)
@@ -120,6 +127,7 @@ case "${targ}" in
hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4*)
targ_defvec=bfd_elf32_hppa_vec
;;
+#if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF)
hppa*-*-bsd*)
targ_defvec=som_vec
targ_selvecs=bfd_elf32_hppa_vec
@@ -131,6 +139,7 @@ case "${targ}" in
targ_defvec=som_vec
targ_selvecs=bfd_elf32_hppa_vec
;;
+#endif /* defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) */
i[3456]86-*-sysv4* | i[3456]86-*-unixware | i[3456]86-*-solaris2* | \
i[3456]86-*-elf | i[3456]86-*-sco*elf* | i[3456]86-*-freebsdelf* | \
@@ -475,10 +484,12 @@ case "${targ}" in
targ_defvec=sunos_big_vec
targ_underscore=yes
;;
+#ifdef BFD64
sparc64-*-elf*)
targ_defvec=bfd_elf64_sparc_vec
targ_selvecs=bfd_elf32_sparc_vec
;;
+#endif /* BFD64 */
sparc-*-netware*)
targ_defvec=bfd_elf32_sparc_vec
targ_selvecs="nlm32_sparc_vec sunos_big_vec"
@@ -491,10 +502,12 @@ case "${targ}" in
targ_underscore=yes
;;
+#if 0
tahoe-*-*)
targ_defvec=host_aout_vec
targ_underscore=yes
;;
+#endif
# start-sanitize-v850
v850-*-*)
@@ -502,15 +515,12 @@ case "${targ}" in
;;
# end-sanitize-v850
- vax-*-vms*)
- echo 1>&2 "*** BFD does not support target ${targ}."
- echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
- exit 1
- ;;
- vax-*-*)
+#if 0
+ vax-*-bsd* | vax-*-ultrix*)
targ_defvec=host_aout_vec
targ_underscore=yes
;;
+#endif
we32k-*-*)
targ_defvec=we32kcoff_vec
@@ -530,7 +540,7 @@ case "${targ}" in
;;
*-adobe-*)
- targ_defvec=a_aout_adobe_vec
+ targ_defvec=a_out_adobe_vec
targ_underscore=yes
;;
@@ -543,7 +553,7 @@ case "${targ}" in
targ_defvec=m68kcoff_vec
targ_selvecs=ieee_vec
;;
-
+# END OF targmatch.h
*)
echo 1>&2 "*** BFD does not support target ${targ}."
echo 1>&2 "*** Look in bfd/config.bfd for supported targets."