修改 SO 文件依赖库
依赖库修改
1 | patchelf --replace-needed liboriginal.so.1 libreplacement.so.1 my-program |
问题及解决
问题:
1 | Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions: Assertion `needed != ((void *)0)' failed! |
解决:
1 | 用 patchelf 1.0以上,不要用0.9 |