2 ms·
I've used it to edit a binary's rpath as part of relocating binaries that really want to be installed at a certain path. You can do this yourself with e.g. hex
by Falell 5y ago
I've used it to edit a binary's rpath as part of relocating binaries that really want to be installed at a certain path.
You can do this yourself with e.g. hexedit if your new path is shorter but if it's longer you need something smarter, like patchelf.
- hvdijk 5y agoYou don't even need to patch it to include a certain path, you can use (and I have used) it to include $ORIGIN or $ORIGIN/../lib in programs' RPATHs. Be careful about when this is and isn't okay though. When used wrong this can be a security risk, such as when your browser auto-downloads files to a Downloads folder, and the program you are patching is also in there.