修改linux下so动态库的soname
更改soname使用命令xxx@ubuntu:~/$ patchelf --set-soname libsndio.so.7.1 libsndio.soxxx@ubuntu:~/$ readelf -d libsndio.soDynamic section at offset 0xbdb0 contains 26 entries:TagTypeName/Value0x000000000000000
·
更改soname
使用命令
xxx@ubuntu:~/$ patchelf --set-soname libsndio.so.7.1 libsndio.so
xxx@ubuntu:~/$ readelf -d libsndio.so
Dynamic section at offset 0xbdb0 contains 26 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x0000000000000001 (NEEDED) Shared library: [ld-linux-aarch64.so.1]
0x000000000000000e (SONAME) Library soname: [libsndio.so]
0x000000000000000c (INIT) 0x2270
0x000000000000000d (FINI) 0xa740
0x0000000000000019 (INIT_ARRAY) 0x1bd98
更多推荐
已为社区贡献3条内容
所有评论(0)