Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以 x86-64 具有 RIP 相对寻址,这使得 PIC 代码易于编写,并且需要的重定位少得多。为什么在 x86-64 上仍然需要重定位?对于什么功能?我可以尝试探索,objdump但是要编译查看哪些 C/C++ 代码模式?
objdump
这篇文章解释得比我好,但基本上是共享库中的全局变量。