Mail Archives: djgpp-workers/2002/01/21/06:31:27
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 -