Not sure if anybody will be able to answer this and there is a suprising lack of implentation details on the web about this, I can only assume the ELF designers wanted to keep this a secret!
Basically a PLT (procedure link table) is used by ELF when creating PIC (position independent code) it works in conjuction with the GOT (global offset table), I have the GOT working perfectly now though, so the PLT is left.
Basically has anybody tried this before?? I have spent an age googling and not really finding anything concrete on how its implemented, just sketchy specs here and there. The best guide I have found was written for virus writers!
So, can any of you enlightened people help!!
EDIT: Can you believe it, just found some info, dang! Anyway, if anybody has implemented this for real, I would be very interested to hear!
ELF PLT Coding
Re:ELF PLT Coding
to add to your sources of info, check out the online copy of Linkers and Loaders, which covers ELF in detail.
Or you cut to the chase and simply read the official specification, of course.
Or you cut to the chase and simply read the official specification, of course.
Re:ELF PLT Coding
Thanks for the links, much appreciated.
Incidentally, I have my ELF loader working now (well for relocatable files anyway). I shall upload my source to my website soon in case anybody is interested in having a look. Its really useful for loadable modules.
Daryl.
Incidentally, I have my ELF loader working now (well for relocatable files anyway). I shall upload my source to my website soon in case anybody is interested in having a look. Its really useful for loadable modules.
Daryl.
Re:ELF PLT Coding
My website address is in my profile, look for the little world symbol below my posts.