[PATCH, v2] Fix 32-bit build for --enable-targets=all
Pedro Alves
pedro@palves.net
Fri Apr 29 16:22:53 GMT 2022
On 2022-04-29 13:35, Luis Machado via Binutils wrote:
>
> After some investigation, it seems the bpf target is a bit of a corner case. It's within the 64-bit bfd group, so libopcodes gets built only if --enable-64-bit-bfd. Otherwise, libopcodes doesn't include bpf.
>
> The bpf sim gets built regardless of having a 32-bit bfd or 64-bit bfd, so in the case of a 32-bit build with --enable-targets=all (and no --enable-64-bit-bfd), libopcodes doesn't include bpf, causing a libsim linking failure due to missing symbols (.
>
> Things work fine for 64-bit though. I think the fix would involve not building the sim if the bpf files are not linked into libopcodes.
Can't the sim m4_include bfd64.m4 too and check enable_64_bit_bfd like opcodes, gdb, ld, etc. do?
More information about the Binutils
mailing list