| View previous topic :: View next topic |
| Author |
Message |
cheriff Regular
Joined: 23 Jun 2004 Posts: 262 Location: Sydney.au
|
Posted: Thu Nov 18, 2004 5:15 pm Post subject: built in _start and _exit |
|
|
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: | /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! |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Fri Nov 19, 2004 2:50 am Post subject: |
|
|
-mno-crt0
Or, alternatively
-nostartfiles
With either option you have to manually provide crt0.o in the final linker command. _________________ "He was warned..." |
|
| Back to top |
|
 |
cheriff Regular
Joined: 23 Jun 2004 Posts: 262 Location: Sydney.au
|
Posted: Fri Nov 19, 2004 10:33 am Post subject: |
|
|
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! |
|
| Back to top |
|
 |
|