This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcc 1.1.2 outputs global object constructors as local (C static) symbols
- To: valette at crf dot canon dot fr
- Subject: Re: egcc 1.1.2 outputs global object constructors as local (C static) symbols
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Thu, 8 Apr 1999 23:02:39 +0200
- CC: egcs-bugs at egcs dot cygnus dot com
- References: <m10VFvj-0000WqC@tri-yann.crf.canon.fr>
> Due to a change in the global constructor/destructor symbol
> export generation, Its harder to make generation of
> constructors table by hand...
Yes; this change was intentional, and it fixed a real bug. That it
broke your 'interesting' build process is unfortunate, but
unavoidable.
If you absolutely need this to work, you have to set-up a
cross-compiler to a target that doesn't support initializer sections.
If this answer does not satisfy you, you'll have to explain in more
detail *why* you want to put the constructor functions into a table -
the linker already does this for you, in a way that interoperates with
the crtstuff provided by egcs.
Regards,
Martin