This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: powerpc-eabism, strategy for finding crt0.o
On Thu, Apr 12, 2001 at 05:05:49PM -0300, Alexandre Oliva wrote:
> On Apr 12, 2001, Geoff Keating <geoffk@geoffk.org> wrote:
>
> > No, the compiler will still need -msim to link correctly for the
> > simulator when configured as 'powerpc-eabi'. It has to be told which
> > board it is linking for.
>
> Will you please confirm that it will fail to link in case -msim isn't
> given? It doesn't matter for link tests whether the program will run,
> the only thing that matters is whether linking succeeds.
The current powerpc behavior is if you don't specify -msim/-mvme/etc. and
configured it for powerpc-eabi (not powerpc-eabisim), it will link in no
library (ie, no -lc, no -lvme, etc.) or crt0. Assuming the object file
references anything in the library, you will get a link error.
--
Michael Meissner, Red Hat, Inc. (GCC group)
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