-shared -fPIC
时间:2019-12-12 01:18:41
收藏:0
阅读:124
gcc -shared -fPIC -o 1.so 1.c
- 这里有一个-fPIC参数
PIC就是position independent code
PIC使.so文件的代码段变为真正意义上的共享
原文:https://www.cnblogs.com/hshy/p/12026702.html
评论(0)