]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
RISC-V: Allow 32-bit BFD to handle 64-bit objects
authorPalmer Dabbelt <palmer@dabbelt.com>
Mon, 1 May 2017 17:26:32 +0000 (10:26 -0700)
committerPalmer Dabbelt <palmer@dabbelt.com>
Fri, 5 May 2017 18:34:54 +0000 (11:34 -0700)
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
bfd/config.bfd

index bbca87370f0f66dc91c4d565b2fc0eb3834ab72a..a51642bd75e090513e85fb44898d3ee7d532ca28 100644 (file)
@@ -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.
index 1b28016b91f7a797275ae4087b034fa70ff9db58..c0312162db42421c900b4a012701a49da09c1efc 100644 (file)
@@ -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"