简体   繁体   English

全局偏移表结构

[英]global offset table structure

How does structure of global offset table(ELF) look. 全局偏移表(ELF)的结构如何看。 I am trying to understand dynamic linking. 我想了解动态链接。 Can any one tell how got data structure looks. 任何人都可以告诉数据结构的外观。 I somehow never found it online. 我莫名其妙地从未在网上找到它。

This is OS and platform-specific, but for x86/x64 Linux, the Global Offset Table is just a bunch of function addresses. 这是操作系统和平台特定的,但对于x86 / x64 Linux,全局偏移表只是一堆函数地址。 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. 在解析符号之前,地址(用于函数)指向过程链接表(PLT),但随后会更新以指向实际的功能位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM