Page 1 of 1

built in _start and _exit

Posted: Thu Nov 18, 2004 5:15 pm
by cheriff
Well after a hectic year at uni, i'm restarting to dabble in the art of ps2dev...
So i thought what better place to start than compiling funslower??

It just took a few makefile tweaks and everything compiles, but

Code: Select all

/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/crt0.o(.text+0x60):../../../../../../newlib/libc/sys/ps2/crt0.S:53: first defined here
So i renamed the ones in the local crt0.s and it compiles, but only crap out at the execption screen on the TV.
Is there a flag or something so ee-ld won't use its own definitions of _start and _exit, whereever the hell they are??

thanks!

Posted: Fri Nov 19, 2004 2:50 am
by mrbrown
-mno-crt0

Or, alternatively

-nostartfiles

With either option you have to manually provide crt0.o in the final linker command.

Posted: Fri Nov 19, 2004 10:33 am
by cheriff
-mno-crt0
Just the ticket!
Much obliged!!

Whoops, lucky i didnt post so soon... This option seg fauts (or address exception or whatever) just after the greetz...

-nostartfiles
Got to the end of the demo....
Cheers!!