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

See the CrossGCC FAQ for lots more infromation.


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

Re: GCC Does Not Look At libc.a for PowerPC-EABI


Roger Racine wrote:
> 
> 
> The linker gives me the following message:
> 
> ---
> $/usr/local/cygnus/ecosSWtools-990319/H-i686-pc-linux-gnu/bin/powerpc-eabi-g
> cc  test_ppc.c
> /usr/local/cygnus/ecosSWtools-990319/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc
> -eabi/2.9-ecosSWtools-990319/../../../../powerpc-eabi/bin/ld: warning:
> cannot find entry symbol _start; defaulting to 01800074
> /tmp/cca166161.o: In function `main':
> /tmp/cca166161.o(.text+0x28): undefined reference to `strlen'
> collect2: ld returned 1 exit status
> ---
>
> Is there an easy way to fix this, or do I need to create a completely new
> configuration (modifying "configure" and creating a new ".h" file in
> config/rs6000) for this type of system?  Thanks.

Why not simply include '-lc' in your link?

-- 
__________________________________________
Matthew Majka - Systems/Software Engineer
Honeywell, Inc. (Defense Avionics Systems)
Albuquerque, New Mexico, USA

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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