This is the mail archive of the
crossgcc@cygnus.com
mailing list for the crossgcc project.
Re: can't find crt1.o. egcs powerpc-linux cross-compile problem.
- To: crossgcc@cygnus.com
- Subject: Re: can't find crt1.o. egcs powerpc-linux cross-compile problem.
- From: Brendan Simon <brendan@dgs.monash.edu.au>
- Date: Tue, 25 May 1999 23:46:26 +0000
- Organization: CTAM Pty Ltd
- References: <374A680D.8B051E6E@dgs.monash.edu.au> <374AC1D4.B085A1E2@iit.nrc.ca>
- Reply-To: crossgcc@cygnus.com
Charles Gauthier wrote:
> WARNING: I do not really know what I am talking about! But here is my guess:
>
> crt1.o is on your PowerPC Linux box ;-)
> It's a binary that came with the OS. You were expected to copy it to your host
> machine. Presummably, the source code is available in the Linux source
> distribution (don't ask me which one.)
I am compiling for an MPC860 embedded system. I do not have access to any kind
of PowerPC Linux box such as an Apple PowerMac, etc.
> My guess is based on the idea that -target=powerpc-linux picked up
> egcs/gcc/config/rs6000/linux.h, which includes egcs/gcc/config/rs6000/sysv4.h.
> This latter header file has:
>
> #ifndef STARTFILE_LINUX_SPEC
> #define STARTFILE_LINUX_SPEC "\
> %{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
> %{mnewlib: ecrti.o%s} \
> %{!mnewlib: crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
> #endif
>
> which is were the attemp to link with crt1.o comes from.
>
> Hope this helps.
>
> BTW, you might be able to provide a stub to satisfy the linker during
> configuration. Look at newlib/newlib/libc/sys/rtems/crt0.c for an idea.
>
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.