1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= ELF Utility to modify dynamic linker and RPATH
8 HOMEPAGE= https://nixos.org/patchelf.html
12 SITES[main]= GITHUB/NixOS:patchelf:0.9
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= complete
19 OPTIONS_AVAILABLE= none
20 OPTIONS_STANDARD= none
22 USES= autoreconf gmake c++:primary
24 LICENSE= GPLv3+:primary
26 LICENSE_FILE= GPLv3+:{{WRKSRC}}/COPYING
28 FPC_EQUIVALENT= sysutils/patchelf
32 [FILE:1299:descriptions/desc.primary]
33 PatchELF is a small utility to modify the dynamic linker and RPATH of ELF
36 Dynamically linked ELF executables always specify a dynamic linker or
37 interpreter, which is a program that actually loads the executable along
38 with all its dynamically linked libraries. (The kernel just loads the
39 interpreter, not the executable.) For example, on a Linux/x86 system the
40 ELF interpreter is typically the file /lib/ld-linux.so.2. It is sometimes
41 necessary to use a different ELF interpreter, say, when you want to test
42 a version of Glibc installed in a location other than /lib.
44 Precompiled third-party binaries may have interpreter paths that are
45 incompatible with the target system. This is where PatchELF comes in.
46 You can simply rewrite the executable:
48 $ patchelf --set-interpreter /my/lib/my-ld-linux.so.2 program
50 This modifies the interpreter section of program to refer to the specified
51 file. This is not quite trivial because the path of the new interpreter may
52 be longer than the old one, in which case it won't fit. PatchELF takes
53 care of growing the executable with sufficient space at the beginning to
54 contain the new interpreter field. As a result, the resulting program may
55 be one page (4 KiB) larger.
57 Likewise it is possible to change or remove RPATHs embedded in ELF files.
61 cf0693e794229e19edcf2299427b5a352e0f4d4f06f9d3856e30ddb0344d5ce8 96859 NixOS-patchelf-0.9.tar.gz
64 [FILE:42:manifests/plist.primary]
66 share/man/man1/patchelf.1.gz
69 [FILE:26:manifests/plist.docs]
70 share/doc/patchelf/README