shared library names analysis

 

There's three name reference to shared library,as following

soname: the soname has the prefix "lib",the name of the library,the phrase ".so", followed by a period and a version number that  is  incremented whenever the interface changes. A fully-qualified soname  includes as a prefix the directory it's in, on working system a fully-qualified soname is simply a symbolic link to the shared library's "real name".


real name: the real name,which is the filename containing the actual library code.The real name adds to the soname a period,a minor number,another period,and the release number.The last period and release number are optional.


linker name:this name is used by the compiler when it requesting a library,which simply the soname without any version number. the linker name is setup during library installation,and it is simply created as a symbolic link to the "latest" soname or the latest real name.


Example:
fully-qualified soname:/usr/lib/libreadline.so.3, ldconfig would set to be a symbolic to some real ame like:
/usr/lib/libreadline.so.3.0.
linker name:/usr/lib/libreadline.so which could be a symbolic referring to /usr/lib/libreadline.so.3.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值