Simplest way to solve binaries relocatable problem, instead of $ORIGIN
NixOS Discourse
Simplest way to solve binaries relocatable problem, instead of $ORIGIN
Two simple rules: Locate .so only in exe‘s directory (not current directory) and PATH, remove everything else such as absolute path, RPATH, RUNPATH, LD_LIBRARY_PATH, LD_PRELOAD, ld cache … Add kernel parameter “ld=” to customize ldso, override PT_INTERP. See Linux Purification Plan - Make Linux portable for details. Subtract. Bring Linux Back to KISS.
0 comments
No comments yet.