阅读背景:

在使用GCC编译时是否还需要使用-fPIC?

来源:互联网 

On gcc target machines, when one wanted to compile a shared library, one would need to specify -fpic or -fPIC to get things to work correcly. This is because by default absolute addressing was used, which is suitable for executable that have full control of their own address space, but not shared libraries, which could be loaded anywhere in an executable's address space.On gcc target machines, when one wanted to comp




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: