Fix building binutils for all 32-bit targets by moving riscv32 target into 64-bit...
authorNick Clifton <nickc@redhat.com>
Fri, 4 Nov 2016 13:50:01 +0000 (13:50 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 4 Nov 2016 13:50:01 +0000 (13:50 +0000)
* targets.c (bfd_target_vector): Only add riscv_elf32_vec target
when supporting 64-bit BFD targets.

bfd/ChangeLog
bfd/targets.c

index 5dc2ea6695194dbdda366658f2eddca2f9c66624..810dd0585df6e054dfeca4cc30191651c11b0017 100644 (file)
@@ -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.
index bc61c0228fc948546c9e09eab0f3ce3f068b4735..8e6158e66735773fa90eee7bba5be292c12b4e13 100644 (file)
@@ -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,