delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/01/21/07:38:18

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Date: Mon, 21 Jan 2002 14:19:08 +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.1020121134534.17842A@is>
Message-ID: <Pine.A41.4.05.10201211407460.10286-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:
> 
> > 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.*)
> 
> Seems like a good idea.
> 
> > (perhaps the same also for lib/djgpp.djl
> 
> Yes, I think so.
> 

We have more difference with linker script from binutils.
Ok to check in?

Andris

Index: djgpp.djl
===================================================================
RCS file: /cvs/djgpp/djgpp/lib/djgpp.djl,v
retrieving revision 1.7
diff -u -r1.7 djgpp.djl
--- djgpp.djl   2001/04/15 15:17:25     1.7
+++ djgpp.djl   2002/01/21 12:36:35
@@ -14,10 +14,14 @@
   }
   .data  ALIGN(0x200) : {
     djgpp_first_ctor = . ;
+    *(SORT(.ctors.*))
     *(.ctor)
+    *(.ctors)
     djgpp_last_ctor = . ;
     djgpp_first_dtor = . ;
+    *(SORT(.dtors.*))
     *(.dtor)
+    *(.dtors)
     djgpp_last_dtor = . ;
     *(.data)
     *(.data.*)




- Raw text -


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