This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] RISC-V: Allow 32-bit BFD to handle 64-bit objects


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]