Tuesday, 08 September 2020
Interesting Snippets from 2020-09-08
-
GitHub - NixOS/patchelf: A small utility to modify the dynamic linker and RPATH of ELF executables
PatchELF is a simple utility for modifying existing ELF executables and libraries. In particular, it can do the following: Change the dynamic loader ("ELF interpreter") of executables: $ patchelf --set-interpreter /lib/my-ld-linux.so.2 my-program Change the RPATH of executables and libraries: $ patchelf --set-rpath /opt/my-libs/lib:/other-libs my-program Shrink the RPATH of executables and libraries: $ patchelf --shrink-rpath my-program