[eresi-dev] Msg for piekelny (another one)
Julien Vanegue
jv274 at cam.ac.uk
Sat Aug 11 06:50:56 UTC 2007
piekielny 14:43 <@piekielny> i have some little problem
piekielny 14:43 <@piekielny> :)
piekielny 14:44 <@piekielny> so...
piekielny 14:44 <@piekielny> to calculate relocs to get value one of
symbols i must have acces
piekielny 14:45 <@piekielny> to section DT_MIPS_GOTSYM
piekielny 14:45 <@piekielny> but interface of this function (for me)
don't give chance for it
piekielny 14:45 <@piekielny> i can't change interface cose there is func
pointer for all arch
piekielny 14:45 <@piekielny> and all function to reloc must have the
same interface so... i have problem :)
piekielny 14:46 <@piekielny> meybe someone see how to bypass it :>
piekielny 14:47 <@pouik__> wait mayhem
piekielny 14:47 <@piekielny> mhm
piekielny 14:54 <@pouik__> piekielny: me too i'm waiting mayhem :p
piekielny 14:56 <@piekielny> ;-)
The relocation function :
int elfsh_relocate_mips32(elfshsect_t *new,
elfsh_Rel *cur,
elfsh_Addr *dword,
elfsh_Addr addr,
elfshsect_t *mod)
Use new->parent to get the ELF file structure. From there you
can find the GOT (in its section list).
You should look at other relocation functions for other
architectures, they use the techniques you need for keeping
them all with the same prototype.
-may
More information about the eresi-dev
mailing list