compile hello.c using mipsel-elf
Abhijit Deshpande
abhijit@softjin.com
Thu Jul 10 14:54:00 GMT 2003
Hi,
I have successfully built a cross compiler for mipsel-elf target.. I have
used binutils-2.13.1, gcc-3.2.2 and newlib-1.11.0..
I am working on redhat 7.2, linux kernel - 2.4.7-10..
But when I try to compile simple 'C' program, it fails while linking..
Are there any particular options missing in the following command line:
./mipsel-elf-install/bin/mipsel-elf-gcc -T./mipsel-elf-install/mipsel-elf/lib/idt.ld ../hello.c,
where hello.c is:
int main() {
return 0;
}
The error is:
..../libgloss/mips/crt0.S:75: multiple definition of `_start'
..../libgloss/mips/crt0.S:75: first defined here
..../libgloss/mips/crt0.S:259: multiple definition of `_exit'
..../libgloss/mips/crt0.S:259: first defined here
can anyone guide me??
Also, I would like to know why
"-T./mipsel-elf-install/mipsel-elf/lib/idt.ld" option is needed??
Thanks,
Abhijit.
--
-------------- next part --------------
----------------------------------------- (softjin.com)
This message and any attachment contained is scanned by InterScan VirusWall in SoftJin and No virus found.
---------------------------------------------------------
-------------- next part --------------
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list