(2) 位置无关代码(position independent code):使用 -fPIC 的 Linux so。 这样的代码本身就能被放到线性地址空间的任意位置,无需修改就能正确执行。
基于138个网页-相关网页
这告诉编译器生成位置无关代码。
This tells the compiler to generate position-independent code.
将dll编译为位置无关代码。
位置无关可执行程序(PIE)含有位置无关代码,有点像动态库,因此启动时这些代码会被随机加载到一个地址上。
Position independent executables (PIE) contain position independent code similar to the Shared libraries and therefore such executables get loaded at a randomly chosen address upon startup.
应用推荐