[--force-rpath] [--add-needed LIBRARY] [--remove-needed LIBRARY] [--replace-needed LIBRARY NEW_LIBRARY] [--print-needed] [--no-default-lib] [--debug] [--version] FILENAME 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 中文翻译如下: ...
[--force-rpath] [--add-needed LIBRARY] [--remove-needed LIBRARY] [--replace-needed LIBRARY NEW_LIBRARY] [--print-needed] [--no-default-lib] [--debug] [--version] FILENAME 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 中文翻译如下: ...
[--force-rpath] [--add-needed LIBRARY] [--remove-needed LIBRARY] [--replace-needed LIBRARY NEW_LIBRARY] [--print-needed] [--no-default-lib] [--debug] [--version] FILENAME 中文翻译如下: 设置动态库解析器 设置页大小 设置DT_SONAME 设置rpath 删除rpath 添加允许的 rpath 前缀 打印rpath 强制...
$patchelf --remove-needed libfoo.so.1 my-program This option can be given multiple times. Add a declared dependency on a dynamic library (DT_NEEDED): $patchelf --add-needed libfoo.so.1 my-program This option can be give multiple times. ...
--remove-needed LIBRARY Removes a declared dependency on LIBRARY (DT_NEEDED entry). This option can be given multiple times. --no-default-lib Marks the object so that the search for dependencies of this object will ignore any default library search paths. --output FILE Set the output fil...
0x0000000000000001 (NEEDED) Shared library: [libIlmImf-2_2.so.22] 修改rpath patchelf --set-rpath '$ORIGIN/' demo 这样就添加了可执行程序demo所在路径为依赖库搜索路径 使用案例: chmod +x $@ && patchelf --remove-rpath $@ && patchelf --set-interpreter /..路径../lib/ld-linux-x86-64.so.2...
$patchelf --remove-needed libfoo.so.1 my-program This option can be given multiple times. Add a declared dependency on a dynamic library (DT_NEEDED): $patchelf --add-needed libfoo.so.1 my-program This option can be give multiple times. ...
[--print-rpath] [--force-rpath] [--add-needed LIBRARY] [--remove-needed LIBRARY] [--replace-needed LIBRARY NEW_LIBRARY] [--print-needed] [--no-default-lib] [--debug] [--version] FILENAME patchelf --set-rpath /lib64 /lib/xxx.so...
$ patchelf.rb --add-needed libnew.so /bin/ls ls.patch Remove $ patchelf.rb --remove-needed libc.so.6 /bin/ls ls.patch Replace $ patchelf.rb --replace-needed libc.so.6,libcnew.so.6 /bin/ls ls.patch $ readelf -d ls.patch | grep NEEDED # 0x0000000000000001 (NEEDED) Shared li...
RPATH][--remove-rpath][--shrink-rpath][--print-rpath][--force-rpath][--add-needed LIBRARY][--remove-needed LIBRARY][--replace-needed LIBRARY NEW_LIBRARY][--print-needed][--no-default-lib][--debug][--version]FILENAME patchelf --set-rpath /lib64 /lib/xxx.so ...