patchelf
Port variant standard
Summary ELF Utility to modify dynamic linker and RPATH
Package version 0.14.5
Homepage https://github.com/NixOS/patchelf
Keywords sysutils
Maintainer nobody
License GPLv3+
Other variants There are no other variants.
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 26 FEB 2022, 15:49:49 UTC
Port created 08 SEP 2017, 03:17:05 UTC
Subpackage Descriptions
complete This is the patchelf-standard metapackage. It pulls in all subpackages of patchelf-standard.
primary PatchELF is a small utility to modify the dynamic linker and RPATH of ELF executables. Dynamically linked ELF executables always specify a dynamic linker or interpreter, which is a program that actually loads the executable along with all its dynamically linked libraries. (The kernel just loads the interpreter, not the executable.) For example, on a Linux/x86 system the ELF interpreter is typically the file /lib/ld-linux.so.2. It is sometimes necessary to use a different ELF interpreter, say, when you want to test a version of Glibc installed in a location other than /lib. Precompiled third-party binaries may have interpreter paths that are incompatible with the target system. This is where PatchELF comes in. You can simply rewrite the executable: $ patchelf --set-interpreter /my/lib/my-ld-linux.so.2 program This modifies the interpreter section of program to refer to the specified file. This is not quite trivial because the path of the new interpreter may be longer than the old one, in which case it won't fit. PatchELF takes care of growing the executable with sufficient space at the beginning to contain the new interpreter field. As a result, the resulting program may be one page (4 KiB) larger. Likewise it is possible to change or remove RPATHs embedded in ELF files.
docs This is the documents subpackage of the patchelf-standard port.
Configuration Switches (platform-specific settings discarded)
This port has no build options.
Package Dependencies by Type
Build (only) gmake:single:ravensys
autoconf:single:standard
automake:single:standard
libtool:single:standard
Runtime (only) ravensys-gcc:cxx_run:standard (primary subpackage)
Download groups
main mirror://GITHUB/NixOS:patchelf:0.14.5
Distribution File Information
ca6ef65d53842a0e38f43aeb0a476a537c29c8528a5f613bb1ef16e08f6756d9 124767 NixOS-patchelf-0.14.5.tar.gz
Ports that require patchelf:standard
No other ports depend on this one.