delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/29/05:59:53

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: egcs update: PE linker problem work-around
29 Oct 1997 05:59:53 -0800 :
Message-ID: <9710290640.AA04997.cygnus.gnu-win32@modi.xraylith.wisc.edu>
To: gnu-win32 AT cygnus DOT com

After what seems like days of suffering, I've given up on figuring what
the problem is with egcs+gas+PE linker. Here's the problem in a nut-shell:
egcs back-end generates named sections that are marked ".linkonce
discard", and if you have lots of templates, you get the same benefit as
on an ELF system. the PE linker gathers up all the named sections and
picks one for you. Unfortunately, it looks as if there is a nasty bug 
where the linker is not doing it's job, and you get multiply-defined
symbols. I first thought it was the code generator, then it was gas, and 
now I believe the problem lies in ld.

To avoid this hassle, I've reverted the code generation to the old days;
the pro is that it works, and the con is that you can't deal with
templates like you can on an ELF system. For all currently working code
under gcc, this shouldn't be a problem. Most of my old code that works
with gcc-2.7.2 also works, and so does octave-2.0.9 (modified to support
new template syntax changes in CD2).

Hopefully those more familiar with BFD/gas/ld can shed some light on
this.

The new updated binary snapshot should be up shortly (URL after sig).

Regards,
Mumit -- khan AT xraylith DOT wisc DOT edu
http://www.xraylith.wisc.edu/~khan/
http://www.xraylith.wisc.edu/~khan/software/gnu-win32

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019