Don't compile some opcodes files when bfd is 32-bit only

Mike Frysinger vapier@gentoo.org
Fri Nov 26 18:01:12 GMT 2021


On 12 Nov 2021 19:07, Alan Modra via Binutils wrote:
> 	* Makefile.am (TARGET_LIBOPCODES_CFILES): Split into..
> 	(TARGET64_LIBOPCODES_CFILES): ..this and..
> 	(TARGET32_LIBOPCODES_CFILES): ..this.
> 	(ALL_MACHINES): Likewise split to
> 	(ALL64_MACHINES, ALL32_MACHINES): ..this.
> 	* disassemble.c: Define some ARCH_* when ARCH_all only if BFD64.
> 	* configure.ac (BFD_MACHINES): Defined depending on BFD_ARCH_SIZE.
> 	* Makefile.in: Regenerate.
> 	* configure: Regenerate.
> 
> --- a/opcodes/Makefile.am
> +++ b/opcodes/Makefile.am
> @@ -88,7 +88,7 @@ HFILES = \
>  
>  # C source files that correspond to .o's ending up in libopcodes
>  # for all machines.
> -TARGET_LIBOPCODES_CFILES = \
> +TARGET64_LIBOPCODES_CFILES = \
>  	aarch64-asm.c \
>  	aarch64-asm-2.c \
>  	aarch64-dis.c \
> @@ -97,6 +97,27 @@ TARGET_LIBOPCODES_CFILES = \
>  	aarch64-opc-2.c \
>  	alpha-dis.c \
>  	alpha-opc.c \
> +	bpf-asm.c \
> +	bpf-desc.c \
> +	bpf-dis.c \
> +	bpf-ibld.c \
> +	bpf-opc.c \
> +	ia64-dis.c \
> +	ia64-opc.c \
> +	loongarch-opc.c \
> +	loongarch-dis.c \
> +	loongarch-coder.c \
> +	mips-dis.c \
> +	mips-opc.c \
> +	mips16-opc.c \
> +	micromips-opc.c \
> +	mmix-dis.c \
> +	mmix-opc.c \
> +	nfp-dis.c \
> +	riscv-dis.c \
> +	riscv-opc.c

riscv supports 32-bit & 64-bit.  this move is breaking 32-bit builds of
32-bit riscv sims.

testing with --host=i686-linux-gnu --enable-targets=all --enable-sim:
make[3]: Entering directory '.../sim/riscv'
  CCLD   run
...sim/riscv/sim-main.c:71: error: undefined reference to 'riscv_gpr_names_abi'
...sim/riscv/sim-main.c:153: error: undefined reference to 'riscv_gpr_names_abi'
...sim/riscv/sim-main.c:652: error: undefined reference to 'riscv_gpr_names_abi'
...sim/riscv/sim-main.c:800: error: undefined reference to 'riscv_gpr_names_abi'
...sim/riscv/sim-main.c:1108: error: undefined reference to 'riscv_opcodes'
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20211126/e442c417/attachment.sig>


More information about the Binutils mailing list