This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 3/4] RISC-V: Allow 32-bit BFD to handle 64-bit objects
- From: Palmer Dabbelt <palmer at dabbelt dot com>
- To: patches at groups dot riscv dot org
- To: binutils at sourceware dot org
- To: Tristan Gingold <gingold at adacore dot com>
- Cc: Palmer Dabbelt <palmer at dabbelt dot com>
- Date: Wed, 3 May 2017 22:06:17 -0700
- Subject: [PATCH 3/4] RISC-V: Allow 32-bit BFD to handle 64-bit objects
- Authentication-results: sourceware.org; auth=none
- References: <20170504050618.22460-1-palmer@dabbelt.com>
We've been telling people that the riscv32-* and riscv64-* toolchains
are exactly the same, but it turns out we were lying: the riscv32-* BFD
doesn't handle 64-bit objects. This fixes that difference, so the ports
are actually the same.
bfd/ChangeLog
2017-05-01 Palmer Dabbelt <palmer@dabbelt.com>
* config.bfd (riscv32-*): Enable rv64.
---
bfd/ChangeLog | 4 ++++
bfd/config.bfd | 3 +--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index bbca873..a51642b 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2017-05-01 Palmer Dabbelt <palmer@dabbelt.com>
+
+ * config.bfd (riscv32-*): Enable rv64.
+
2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
* elfnn-riscv.c (GP_NAME): Delete.
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 1b28016..c031216 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -1439,10 +1439,9 @@ case "${targ}" in
#ifdef BFD64
riscv32-*-*)
targ_defvec=riscv_elf32_vec
- targ_selvecs="riscv_elf32_vec"
+ targ_selvecs="riscv_elf32_vec riscv_elf64_vec"
want64=true
;;
-
riscv64-*-*)
targ_defvec=riscv_elf64_vec
targ_selvecs="riscv_elf32_vec riscv_elf64_vec"
--
2.10.2