built in _start and _exit

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
cheriff
Regular
Posts: 258
Joined: Wed Jun 23, 2004 5:35 pm
Location: Sydney.au

built in _start and _exit

Post 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!
Damn, I need a decent signature!
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

-mno-crt0

Or, alternatively

-nostartfiles

With either option you have to manually provide crt0.o in the final linker command.
"He was warned..."
cheriff
Regular
Posts: 258
Joined: Wed Jun 23, 2004 5:35 pm
Location: Sydney.au

Post 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!!
Damn, I need a decent signature!
Post Reply