什么是_GLOBAL_OFFSET_TABLE? [英] What is _GLOBAL_OFFSET_TABLE?
本文介绍了什么是_GLOBAL_OFFSET_TABLE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Linux中的纳米命令来查看我在程序的符号,我看到一个符号名称 _GLOBAL_OFFSET_TABLE _
,如下图所示。有人能详细点是什么 _GLOBAL_OFFSET_TABLE _
用的?
0000000000614018ð_GLOBAL_OFFSET_TABLE_
解决方案
_GLOBAL_OFFSET_TABLE _
用来定位全局(函数,变量等)的实际地址的 PIC(位置无关code),它通常被称为GOT,可以阅读起来就可以了这里和更深入的有一个here 。
Using the nm command in Linux to see the symbols in my program, I see a symbol by the name _GLOBAL_OFFSET_TABLE_
as shown below. Can somebody elaborate what is _GLOBAL_OFFSET_TABLE_
used for?
0000000000614018 d _GLOBAL_OFFSET_TABLE_
解决方案
_GLOBAL_OFFSET_TABLE_
is used to locate the real addresses of globals (functions, variables etc) for PIC (Position-Independent Code), its commonly referred to as the GOT, you can read up on it here and a more indepth one here.
这篇关于什么是_GLOBAL_OFFSET_TABLE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文