My program depends on libcurl.so.3
, but in RHEL6, there is no soft like this libcurl.so.3 ->libcurl.so.4
(my program can run smoothly when I create this link). But there is a soft link like this: libcurl.so->libcurl.so.4
.
I would like to modify the SONAME
of libcurl.so.3.0.0.0
directly from libcurl.so.3
to libcurl.so
. Then I can run my program on RHEL 6 without creating a soft link myself.
Maybe my solution is stupid, but I think learning how to modify the binary directly is an interesting thing.
Tahnk you for your comment, devnull. maybe i did not tell clearly.
$readelf -d libcurl.so.3.0.0
Dynamic segment at offset 0x303cc contains 25 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libssl.so.2]
0x0000000e (SONAME) Library soname: [libcurl.so.3]--->i would like to change this to libcurl.so