This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Fix building binutils for all 32-bit targets by moving riscv32 target into 64-bit builds only.
- From: Nick Clifton <nickc at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 4 Nov 2016 13:50:53 -0000
- Subject: [binutils-gdb] Fix building binutils for all 32-bit targets by moving riscv32 target into 64-bit builds only.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1b7a12f2d68f2f334fbe78cc2db76982ba6d4ef1
commit 1b7a12f2d68f2f334fbe78cc2db76982ba6d4ef1
Author: Nick Clifton <nickc@redhat.com>
Date: Fri Nov 4 13:50:01 2016 +0000
Fix building binutils for all 32-bit targets by moving riscv32 target into 64-bit builds only.
* targets.c (bfd_target_vector): Only add riscv_elf32_vec target
when supporting 64-bit BFD targets.
Diff:
---
bfd/ChangeLog | 5 +++++
bfd/targets.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 5dc2ea6..810dd05 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-04 Nick Clifton <nickc@redhat.com>
+
+ * targets.c (bfd_target_vector): Only add riscv_elf32_vec target
+ when supporting 64-bit BFD targets.
+
2016-11-03 Tristan Gingold <gingold@adacore.com>
* config.bfd: Deprecate many old triplets.
diff --git a/bfd/targets.c b/bfd/targets.c
index bc61c02..8e6158e 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -1305,8 +1305,8 @@ static const bfd_target * const _bfd_target_vector[] =
&powerpc_xcoff_vec,
#endif
- &riscv_elf32_vec,
#ifdef BFD64
+ &riscv_elf32_vec,
&riscv_elf64_vec,
#endif
&rl78_elf32_vec,