记录一下常用GCC 相关的命令和参数
ldd ---> print share library dependenciy
LD_LIBRARY_PATH---> environment variable, it will search the path accord to this variable.
Also check the ldd to verify this environmental variable
ldconfig-----> configure dynamic linker run-time bind.
it will create a symbol link to the share library, and save it in the catch file. So it can accelarte the speed to find the speed. /etc/ld.so.cache
ld.so----------> dynamic linker or loader
It will load the share library.
nm-----> list the symbols from object file / share library/ static library
as ------> the portal GNU assembley
ld ------------> then GNU linker
gcc ------> GNU project c and c++ compiler and is the shell of as and ld.
readlink---> dispaly value of a symbol link
read value of a symbol link
check the soname
readelf -d sharelibrary
原文链接: https://www.cnblogs.com/zhyg6516/archive/2011/03/18/1988136.html
欢迎关注
微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍
原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/22483
非原创文章文中已经注明原地址,如有侵权,联系删除
关注公众号【高性能架构探索】,第一时间获取最新文章
转载文章受原作者版权保护。转载请注明原作者出处!