This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: use crtbegin/crtend for powerpc-eabi
- To: Geoff Keating <geoffk at cygnus dot com>
- Subject: Re: use crtbegin/crtend for powerpc-eabi
- From: Michael Meissner <meissner at cygnus dot com>
- Date: Fri, 14 Apr 2000 19:44:45 -0400
- Cc: gcc-patches at gcc dot gnu dot org
- References: <200004142315.QAA09926@localhost.cygnus.com>
On Fri, Apr 14, 2000 at 04:15:44PM -0700, Geoff Keating wrote:
>
> I am just about to commit the attached. What it mostly does is
> now use a multilibbed crtbegin/crtend for powerpc-eabi, replacing
> the previous eabi-ctors.c.
>
> The main new feature is that we now use the .init and .fini sections,
> just like a normal ELF port. The main not-yet-done feature is calling
> .init and .fini from crt0 (.init now gets called from eabi.S, which is
> probably not as good), but that's a more major change.
>
> Another benefit of this is that the constructor-priority stuff now
> works with the default ldscript.
Just to be sure -- did you compile and test code that was using constructors
and destructors compiled with the old compiler works correctly? I would
imagine both eabi and ppc linux people would get annoyed if this broke.
--
Michael Meissner, Cygnus Solutions, a Red Hat company.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482