ELF relocation
Posted: Mon Sep 05, 2005 12:10 am
I'm trying to relocate an ELF, and it's working partly.
When I call a function that is below my current one, it works, but I fail to call one on top of it.
That's how I set the references, absolute is pointing at an unsigned dword reference to be patched.
I've tried to use signed values instead, but that won't work either.
When I call a function that is below my current one, it works, but I fail to call one on top of it.
Code: Select all
*absolute = ((uint32)newaddress - (uint32)absolute) / 4 + 1;
I've tried to use signed values instead, but that won't work either.