This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] new FreeBSD/alpha support
On Fri, Oct 06, 2000 at 11:15:51PM -0700, Richard Henderson wrote:
> > +/* XXX, if FreeBSD/Alpha grows a crti.o file, we can use the alpha/elf.h
> > + definition. */
> > +#undef STARTFILE_SPEC
> > +#define STARTFILE_SPEC \
> > + "%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
> > + %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
>
> What's in your crt1 that you can use crtbegin at all, then?
> Seems unlikely to me that this functions.
We have a home-grown crt1. I'm not sure I understand the question, but
FreeBSD/alpha's crt1.o calls _init() and registers "atexit(_fini)".
These routines are supplied by our crtbegin.o and placed in the .init and
.fini sections respectively.
For the stock FSF/GCC, should I add
extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" as i386*-freebsd
and alpha*-*-linux* uses?
--
-- David (obrien@FreeBSD.org)