ELF PLT Coding

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
DarylD

ELF PLT Coding

Post by DarylD »

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!
Schol-R-LEA

Re:ELF PLT Coding

Post by Schol-R-LEA »

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.
DarylD

Re:ELF PLT Coding

Post by DarylD »

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.
Ozguxxx

Re:ELF PLT Coding

Post by Ozguxxx »

What is your web site address? Thanx.
DarylD

Re:ELF PLT Coding

Post by DarylD »

My website address is in my profile, look for the little world symbol below my posts.
Post Reply