public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Remove duplicate pe-dll.o entry deom targ_extra_ofiles
@ 2023-01-19  3:51 Khem Raj
  2023-01-19  9:38 ` Jan Beulich
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2023-01-19  3:51 UTC (permalink / raw)
  To: binutils; +Cc: Khem Raj, Jedidiah Thompson, Zac Walker

Commit c60b3806799abf1d7f6cf5108a1b0e733a950b13 added support for
aarch64-pe which introduced wrapper over pep-dll.c for x86_64 as well as
aarch64, on x86_64 it was added but the old object pe-dll.o needs to be
removed too, otherwise build fails with duplicate symbols from pe-dll.o
and pep-dll-x86_64.o

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Jedidiah Thompson <wej22007@outlook.com>
Cc: Zac Walker <zac.walker@linaro.org>
---
 ld/configure.tgt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ld/configure.tgt b/ld/configure.tgt
index de04a44b812..f80c84ab13c 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -1047,7 +1047,7 @@ x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
 			;;
 x86_64-*-pe | x86_64-*-pep) targ_emul=i386pep ;
 			targ_extra_emuls=i386pe ;
-			targ_extra_ofiles="deffilep.o pdb.o pep-dll-x86_64.o pe-dll.o"
+			targ_extra_ofiles="deffilep.o pdb.o pep-dll-x86_64.o"
 			;;
 x86_64-*-cygwin)	targ_emul=i386pep ;
 			targ_extra_emuls=i386pe
@@ -1056,7 +1056,7 @@ x86_64-*-cygwin)	targ_emul=i386pep ;
 			;;
 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"
-- 
2.39.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Remove duplicate pe-dll.o entry deom targ_extra_ofiles
  2023-01-19  3:51 [PATCH] Remove duplicate pe-dll.o entry deom targ_extra_ofiles Khem Raj
@ 2023-01-19  9:38 ` Jan Beulich
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Beulich @ 2023-01-19  9:38 UTC (permalink / raw)
  To: Khem Raj; +Cc: Jedidiah Thompson, Zac Walker, binutils

On 19.01.2023 04:51, Khem Raj via Binutils wrote:
> Commit c60b3806799abf1d7f6cf5108a1b0e733a950b13 added support for
> aarch64-pe which introduced wrapper over pep-dll.c for x86_64 as well as
> aarch64, on x86_64 it was added but the old object pe-dll.o needs to be
> removed too, otherwise build fails with duplicate symbols from pe-dll.o
> and pep-dll-x86_64.o

Prior to said change pe-dll.o and pep-dll.o were also _both_ linked in.
You want to explain why _that_ isn't necessary anymore (if that's really
the case, which I doubt; instead I think your change breaks i386pe as
specified via targ_extra_emuls). Otherwise the duplicate symbol errors
(which, btw, I'm not seeing, so there must be more to it than you say)
need dealing with another way.

Jan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-19  9:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-19  3:51 [PATCH] Remove duplicate pe-dll.o entry deom targ_extra_ofiles Khem Raj
2023-01-19  9:38 ` Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).