Questions tagged [patchelf]
Patchelf is a program which can change the dynamic linking parameters within an executable. Use this tag on questions which can be solved using the patchelf utility.
12 questions
-1votes
1answer
241views
Why do I get different results when running a program with ld-linux.so and when changing the interpreter with patchelf?
What's the difference between running a program with ld + --library-path and with changing the loader with patchelf? To illustrate, here is a binary that wouldn't run as is, presumably because of lack ...
2votes
0answers
275views
auto-patchelf could not satisfy dependency libQt5SerialPort.so.5
I am trying to run Qt Design Studio 2.3.1 Community on NixOS. My nix derivation code: flake.nix: { description = "Qt Design Studio"; inputs = { nixpkgs.url = "github:NixOS/...
4votes
1answer
6kviews
Cannot exceute binary: required file not found
I see that there are other questions like this out there, but the answers there did not work for me. I am using I downloaded the Julia 1.9.2 (Linux, x86-64, glibc) prebuilt binary and tried to execute ...
0votes
0answers
2kviews
Usage of objcopy / elfedit to patchelf symbol (versions) in elf file
The context is as follows: on my o.s. there is (already) liba.so.v2 of "liba" which contains the string 'symbol_version-2' as the symbol version for its functions , e.g. functionX@version-2 ...
2votes
1answer
273views
Nix -- how to use addAutoPatchelfSearchPath correctly?
I'm packaging a tool that includes some shared objects natively, and I think the right approach to add those objects to the rpath is to use the addAutoPatchelfSearchPath function to the installPhase ...
1vote
1answer
382views
ldconfig creating links with strange names after patching libraries with patchelf?
I am patching several libraries on my development server to remove unneeded dependencies using the patchelf tool. These get packaged into an RPM and installed on my runtime system. After the install, ...
5votes
0answers
1kviews
installing .net core sdk 2.0 on NixOs (can't find templates)
Resume I am currently trying to install dot-net-core-sdk 2.0 with the Nix package manager in NixOs. I am very new to both NixOs, Nix, bash scripting and stuff like ELF. Yet I think I've successfully ...
1vote
1answer
818views
Cannot chroot bash after setting RUNPATH in ld-linux-x86-64.so.2 with patchelf 0.6 and 0.8
I am testing how dynamic linking works with RUNPATH variable, and trying to run bash in a minimal chroot directory: $ find dir_chroot/ -type f dir_chroot/bin/bash dir_chroot/lib/x86_64-linux-gnu/libc....
18votes
1answer
13kviews
Using alternate libc with ld-linux.so hacks; cleaner method?
I have a legacy system with a very old glibc, which we can't upgrade without incurring a mountain of testing/validation work. I have needed to run newer programs (such as Java 1.7) on that system ...
16votes
2answers
9kviews
Cannot execute binary in NixOS - No such file or directory
I tried to install the current oracle jre on a VM running NixOS. Now the following happens: [michas@cc:~]$ tar xvzf jre-7u40-linux-x64.tar.gz |grep bin/java jre1.7.0_40/bin/javaws jre1.7.0_40/bin/...
9votes
2answers
38kviews
executing binary file: file not found
I know there are similar questions out there, but I haven't found a solution nor this exact case. The binary was built on Arch Linux using its GCC 4.7. The package works fine on the build system. The ...
5votes
1answer
4kviews
Linux : Alternative of install_name_tool of MAC in CentOS
I am looking for alternative of install_name_tool of MAC in CentOS. Exactly I want to build MySQL on non default location. Also the shared libraries of the mysql binary should be on non default ...