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
ELF Start Address
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)
Unless they happen to be relocatable, its not going to happen without relinking (AFAIK, anyway)
Damn, I need a decent signature!