This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] RISC-V: Allow 32-bit BFD to handle 64-bit objects
- From: Alan Modra <amodra at gmail dot com>
- To: Palmer Dabbelt <palmer at dabbelt dot com>
- Cc: binutils at sourceware dot org, patches at groups dot riscv dot org
- Date: Tue, 2 May 2017 11:01:44 +0930
- Subject: Re: [PATCH] RISC-V: Allow 32-bit BFD to handle 64-bit objects
- Authentication-results: sourceware.org; auth=none
- References: <20170501203303.21729-1-palmer@dabbelt.com>
On Mon, May 01, 2017 at 01:33:03PM -0700, Palmer Dabbelt wrote:
> -#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"
> want64=true
> ;;
> -#endif
Removing the #ifdef isn't correct. To see why, configure binutils
with --enable-targets=all on a 32-bit host. OK without that change.
--
Alan Modra
Australia Development Lab, IBM