[mips-gnu-discuss] Compile error, in function '__start'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mips-gnu-discuss] Compile error, in function '__start'



Hello, 
I'm trying to compile a provided boot.s code I got from MIPS and I'm getting the following error during compilation

> mips-linux-gnu-gcc -Wall -mips32r2 -EB -mgp32 -o boot.o boot.s

/home/p/CodeSourcery/Sourcery_G++_Lite/bin/../mips-linux-gnu/libc/usr/lib/crt1.o: In function `__start':
(.text+0xc): undefined reference to `main'
/home/p/CodeSourcery/Sourcery_G++_Lite/bin/../mips-linux-gnu/libc/usr/lib/crt1.o: In function `__start':
(.text+0x10): undefined reference to `main'
collect2: ld returned 1 exit status

Any idea how to approach this?

Thanks in advance, 

P