GNU Binutils 2.40 released

Jan Beulich jbeulich@suse.com
Mon Jan 16 07:59:04 GMT 2023


On 15.01.2023 22:18, Achim Gratz wrote:
> Also, it doesn't build on Cygwin (and when building the cross compilers
> to MinGW64) when enabling target x86_64-pep due to doubly defined
> symbols when linking ld-new (pep-dll-x86_64 defines the same symbols as
> pep-dll).  The following patch seems to fix that particular issue, but
> is unlikely to do the right thing when other configure options are used.
> 
> --8<---------------cut here---------------start------------->8---
> --- origsrc/binutils-2.40/ld/configure.tgt
> +++ src/binutils-2.40/ld/configure.tgt
> @@ -1051,12 +1051,12 @@
>  			;;
>  x86_64-*-cygwin)	targ_emul=i386pep ;
>  			targ_extra_emuls=i386pe
> -			targ_extra_ofiles="deffilep.o pdb.o pep-dll.o pe-dll.o"
> +			targ_extra_ofiles="deffilep.o pdb.o pe-dll.o"
>  			test "$targ" != "$host" && LIB_PATH='${tooldir}/lib/w32api'
>  			;;
>  x86_64-*-mingw*)	targ_emul=i386pep ;
>  			targ_extra_emuls=i386pe
> -			targ_extra_ofiles="deffilep.o pdb.o pep-dll.o pe-dll.o"
> +			targ_extra_ofiles="deffilep.o pdb.o pe-dll.o"
>  			;;
>  x86_64-*-gnu*)		targ_emul=elf_x86_64
>  			targ_extra_emuls="elf32_x86_64 elf_iamcu elf_i386"
> 
> --8<---------------cut here---------------end--------------->8---

There must be more to this: The logic here isn't meaningfully different
from 2.39 (only pdb.o was added). I've also checked (cross) builds of
both targets (with recent master, not 2.40), and there's no
pep-dll-x86_64.o there.

Jan


More information about the Binutils mailing list