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]

Problems linking test code with newly built crossGCC


Hello,
	Thanks to the help I received recently from subscribers to this list, I 
have managed to compile a linux hosted crossGCC that emits code for the 
MPC860 cpu.

	I am now having troubles linking a simple bit of test code.  The code 
compiles just fine but ld spits the dummy along with the error messages 
shown below.  It seems to me that gcc/ld cannot find the libs they require.  
I have tried using -L and -l to indicate which libs gcc/ld should use but to 
no avail.
	Incidentally, I am using newlib 1.8.2

	Could somebody please advise me ?

cheers,
	Jeff

PS error messages below.

[/usr/local/my_src/test/src]$ powerpc-eabi-gcc test.c
/usr/local/cross-gcc/target/powerpc-eabi/bin/ld: warning: cannot find entry 
symbol _start; defaulting to 01800074
/tmp/ccrdrrnO.o: In function `main':
/tmp/ccrdrrnO.o(.text+0x54): undefined reference to `sprintf'


/usr/local/cross-gcc/target/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x8): 
undefined reference to `__SDATA_START__'
/usr/local/cross-gcc/target/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0xc): 
undefined reference to `__SBSS_END__'
/usr/local/cross-gcc/target/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x14): 
undefined reference to `__SDATA2_START__'
/usr/local/cross-gcc/target/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x18): 
undefined reference to `__SBSS2_END__'
/usr/local/cross-gcc/target/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi-ctors.o): 
In function `__do_global_ctors':
/usr/local/cross-gcc/build/gcc/gcc/eabi-ctors.c(.sdata+0x0): undefined 
reference to `__init'
/usr/local/cross-gcc/build/gcc/gcc/eabi-ctors.c(.sdata+0x4): undefined 
reference to `__fini'
collect2: ld returned 1 exit status

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


------
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]