Click to See Complete Forum and Search --> : elf start adress


rookie wit skillz
June 2nd, 2006, 11:45 PM
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

PeejAvery
June 3rd, 2006, 01:02 AM
I really have no clue what in the world you are talking about, but this belongs in a totally different forum. Private message Dr. Script and ask him to move it to where he belongs.

olivthill
June 3rd, 2006, 02:54 PM
ELF means Executable and Linking Format. It is the format of an executable file, on some Unix systems. That format has inspired the format for some 32-bit executable files for Windows.

ELF files, like other modern executable files, are relocatable files. This means, it is up to the loader module of the operating system to decide where the file will be placed in memory. It does not have a fixed location.

I think this question could be relocated to the section about assembly.

Dr. Script
June 3rd, 2006, 03:51 PM
I'll copy it there and leave a redirecting link.