This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: can't find crt1.o. egcs powerpc-linux cross-compile problem.


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]