This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] bfd/targets: create elf64 selvecs only if 64-bit bfd support is enabled.
- From: Philippe De Muyter <phdm at macqel dot be>
- To: binutils at sourceware dot org
- Cc: Philippe De Muyter <phdm at macqel dot be>
- Date: Thu, 19 Jun 2014 16:10:09 +0200
- Subject: [PATCH] bfd/targets: create elf64 selvecs only if 64-bit bfd support is enabled.
- Authentication-results: sourceware.org; auth=none
when compiling on a 32-bit target by
./configure --enable-targets=all
make
one gets error messages :
../bfd/.libs/libbfd.a(targets.o):(.rodata+0xbd4):
undefined reference to `elf64_be_vec'
../bfd/.libs/libbfd.a(targets.o):(.rodata+0xbd8):
undefined reference to `elf64_le_vec'
...
Fix that.
Signed-Off-By: Philippe De Muyter <phdm@macqel.be>
---
bfd/targets.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/bfd/targets.c b/bfd/targets.c
index 0860dc5..65f4648 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -1028,8 +1028,10 @@ static const bfd_target * const _bfd_target_vector[] =
the file even if we don't recognize the machine type. */
&elf32_be_vec,
&elf32_le_vec,
+#ifdef BFD64
&elf64_be_vec,
&elf64_le_vec,
+#endif
&epiphany_elf32_vec,
@@ -1045,8 +1047,10 @@ static const bfd_target * const _bfd_target_vector[] =
&hppa_elf32_vec,
&hppa_elf32_linux_vec,
&hppa_elf32_nbsd_vec,
+#ifdef BFD64
&hppa_elf64_vec,
&hppa_elf64_linux_vec,
+#endif
&hppa_som_vec,
&i370_elf32_vec,
@@ -1110,10 +1114,12 @@ static const bfd_target * const _bfd_target_vector[] =
&ip2k_elf32_vec,
&iq2000_elf32_vec,
+#ifdef BFD64
&k1om_elf64_vec,
&k1om_elf64_fbsd_vec,
&l1om_elf64_vec,
&l1om_elf64_fbsd_vec,
+#endif
&lm32_elf32_vec,
--
1.8.1.4