Reputation: 9426
How does structure of global offset table(ELF) look. I am trying to understand dynamic linking. Can any one tell how got data structure looks. I somehow never found it online.
Upvotes: 5
Views: 2458
Reputation: 13994
This is OS and platform-specific, but for x86/x64 Linux, the Global Offset Table is just a bunch of function addresses. There's one entry for each symbol in it. Before symbols are resolved, the addresses (for functions) point back into the Procedure Linkage Table (PLT), but are then updated to point to the actual function locations.
Upvotes: 4