forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

built in _start and _exit

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
cheriff
Regular


Joined: 23 Jun 2004
Posts: 262
Location: Sydney.au

PostPosted: Thu Nov 18, 2004 5:15 pm    Post subject: built in _start and _exit Reply with quote

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
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Fri Nov 19, 2004 2:50 am    Post subject: Reply with quote

-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
View user's profile Send private message
cheriff
Regular


Joined: 23 Jun 2004
Posts: 262
Location: Sydney.au

PostPosted: Fri Nov 19, 2004 10:33 am    Post subject: Reply with quote

Quote:
-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!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group