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 

ELF Start Address

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
Derek8588



Joined: 22 Oct 2004
Posts: 62

PostPosted: Thu May 04, 2006 11:59 am    Post subject: ELF Start Address Reply with quote

How can I change the start address of an ELF? In other words, I want to change the location in RAM that an ELF is loaded. I figured out how to do that by opening an ELF in a Hex Editor and modifying the first 4 lines. I reopened the ELF and it started at the modified address. But when I sent it through ps2link, my TV displayed a black screen with an "Exception handler: Reserved instruction Exception." It gives me a cause, BadAddr, Status, and EPC. Then there is a list of all the registers with their values.

So, how can I change the place where an ELF is loaded into ram properly? Thanks
Back to top
View user's profile Send private message
cheriff
Regular


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

PostPosted: Thu May 04, 2006 12:27 pm    Post subject: Reply with quote

You recompile your sources and link them to whereever you'd like them to be. I doubt they're compiled with position independantly, so simply changing the load address is bound to give problems.
Unless they happen to be relocatable, its not going to happen without relinking (AFAIK, anyway)
_________________
Damn, I need a decent signature!
Back to top
View user's profile Send private message
Derek8588



Joined: 22 Oct 2004
Posts: 62

PostPosted: Fri May 05, 2006 8:35 am    Post subject: Reply with quote

Well i have seen two different versions of RK Swapper, each with a different start address. Is it even possible to change this by just using a hex editor?
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Fri May 05, 2006 8:39 am    Post subject: Reply with quote

We don't talk about warez tools here.

Locked.
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    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