delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/01/21/06:31:27

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Date: Mon, 21 Jan 2002 13:12:15 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
X-Sender: pavenis AT ieva06
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Cc: djgpp-workers AT delorie DOT com
Subject: Re: Default output format
In-Reply-To: <Pine.SUN.3.91.1020121120101.16755M-100000@is>
Message-ID: <Pine.A41.4.05.10201211250290.12634-100000@ieva06>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


On Mon, 21 Jan 2002, Eli Zaretskii wrote:

> 
> On Mon, 21 Jan 2002, Andris Pavenis wrote:
> 
> > > It looks like GCC 3.0.1 and later come with a linker script which
> > > sets the default output format to coff-go32-exe.  Older versions
> > > produced coff-go32.
> > > 
> > > I don't remember this being discussed, but perhaps I forgot.  What
> > > were the reasons for this change?
> > 
> > I simply copied binutils linker scripts with some fixes if needed
> 
> If it was inadvertent, perhaps we should revert to coff-go32 we always 
> used.  IIRC, coff-go32-exe raises some problematic issues, like the fact 
> that our spawn* functions recognize it's a .exe executable, while 
> command.com does not.
> 

If it is needed I can change to coff-go32. But I think it should be
updated also in binutils in this case. 

By the way linker scripts in binutils (my build of unmodified 17th
January CVS version of binutils) and in current CVS version of DJGPP is
still out of sync with gcc-3.1 development version as it uses
.ctors and .dtors instead of .ctor and .dtor (change of 
gcc/config/djgpp.h from 1.27 to 1.28 at August 9th, 2001 by rth:
http://subversions.gnu.org/cgi-bin/viewcvs/gcc/gcc/gcc/config/i386/djgpp.h)

I think this should be considered as cleanup and I'm not sure we have to 
revert this change (now it uses the defaults). So I suggest following
change to linker script:

--- i386go32.x  Mon Jan 21 13:12:03 2002
+++ djgpp-x.djl Mon Jan 21 13:08:01 2002
@@ -16,10 +16,12 @@
     djgpp_first_ctor = . ;
     *(SORT(.ctors.*))
     *(.ctor)
+    *(.ctors)
     djgpp_last_ctor = . ;
     djgpp_first_dtor = . ;
     *(SORT(.dtors.*))
     *(.dtor)
+    *(.dtors)
     djgpp_last_dtor = . ;
     *(.data)
     *(.data.*)

(perhaps the same also for lib/djgpp.djl, I can check it in unless there
are objections). 

Andris



- Raw text -


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