Mail Archives: djgpp-workers/2002/01/21/07:38:18
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 -