Page 1 of 1

ELF relocation

Posted: Mon Sep 05, 2005 12:10 am
by ohboy
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.

Code: Select all

*absolute = ((uint32)newaddress - (uint32)absolute) / 4 + 1;
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.

Re:ELF relocation

Posted: Mon Sep 05, 2005 11:37 am
by ohboy
If someone have some code that relocates ELFs, I would be very glad if you liked to post it, it would help me alot right now.

Re:ELF relocation

Posted: Tue Sep 06, 2005 3:06 am
by Pype.Clicker
i should have that in the "tools" package of clicker ... http://cvs.sourceforge.net/viewcvs.py/c ... /modmakr2/

that should be "elfopen.c"