| View previous topic :: View next topic |
| Author |
Message |
Derek8588
Joined: 22 Oct 2004 Posts: 62
|
Posted: Thu May 04, 2006 11:59 am Post subject: ELF Start Address |
|
|
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 |
|
 |
cheriff Regular
Joined: 23 Jun 2004 Posts: 262 Location: Sydney.au
|
Posted: Thu May 04, 2006 12:27 pm Post subject: |
|
|
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 |
|
 |
Derek8588
Joined: 22 Oct 2004 Posts: 62
|
Posted: Fri May 05, 2006 8:35 am Post subject: |
|
|
| 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 |
|
 |
Drakonite Site Admin

Joined: 17 Jan 2004 Posts: 989
|
Posted: Fri May 05, 2006 8:39 am Post subject: |
|
|
We don't talk about warez tools here.
Locked. _________________ Shoot Pixels Not People!
Makeshift Development |
|
| Back to top |
|
 |
|