[patch]: allow to compile and use som on any host
Tristan Gingold
gingold@adacore.com
Fri May 28 09:17:00 GMT 2010
Hi,
this is the final patch: config.bfd won't prevent from targeting som
and som will be included in --enable-targets-all.
Ok to commit ?
Tristan.
bfd/
2010-05-28 Tristan Gingold <gingold@adacore.com>
* config.bfd: Remove #if/#endif so that som can be compiled on any
host.
* targets.c (_bfd_target_vector): Remove #if/#endif so that som
can be used on any host.
diff --git a/bfd/config.bfd b/bfd/config.bfd
index abe1b5e..b25b2fa 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -470,7 +470,6 @@ case "${targ}" in
targ_selvecs=bfd_elf32_hppa_linux_vec
;;
-#if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) || defined (HOST_HPPAMPEIX)
hppa*-*-bsd*)
targ_defvec=som_vec
targ_selvecs=bfd_elf32_hppa_vec
@@ -482,7 +481,6 @@ case "${targ}" in
targ_defvec=som_vec
targ_selvecs=bfd_elf32_hppa_vec
;;
-#endif /* defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) */
i370-*-*)
targ_defvec=bfd_elf32_i370_vec
diff --git a/bfd/targets.c b/bfd/targets.c
index 61a8f2d..8e0fafe 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -1204,9 +1204,7 @@ static const bfd_target * const _bfd_target_vector[] =
&shlcoff_vec,
&shlpe_vec,
&shlpei_vec,
-#if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF)
&som_vec,
-#endif
&sparccoff_vec,
&sparcle_aout_vec,
&sparclinux_vec,
More information about the Binutils
mailing list