更改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

 

Logo

更多推荐