BSD Ports

devel/patchelf 0.19.1 NetBSD

Modify the dynamic linker and RPATH of ELF binaries

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
92e08cd5c9
License
gnu-gpl-v3
Categories
devel
Package size
97.1 KiB, 277.6 KiB installed

Description

PatchELF is a small utility to modify the dynamic linker and RPATH of ELF executables. It is used by the Nix Packages collection (nixpkgs).

In the other systems

SystemPortVersion
NetBSDdevel/patchelf0.19.1
FreeBSDsysutils/patchelf0.18.0
OpenBSDsysutils/patchelf0.19.1
DragonFlysysutils/patchelf0.18.0
MidnightBSDsysutils/patchelf0.14.5
HardenedBSDsysutils/patchelf0.18.0
GhostBSDsysutils/patchelf0.18.0

Install

Binary package:

pkgin install patchelf

From pkgsrc:

cd /usr/pkgsrc/devel/patchelf && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.19.1
NetBSD 10.1 aarch640.18.0nb1
SmartOS / illumos x86_640.19.2
macOS 15 arm640.19.2

Dependencies

Commit history 2

DateCommitCreditsLog message
92e08cd5c9 adam patchelf: updated to 0.19.2
0.19.2 A bug fix release for rewriting executables after stripping. Bug fixes Fix executable corruption when patching again after strip removes padding between load segments, as seen when bootstrapping GHC. Rewritten sections and program headers now use the address mapping of the load segment covering the ELF header. Avoid allocating an unnecessary extra page when growing executable sections, while keeping split load segments from overlapping after page alignment.
12bf05f16d adam patchelf: updated to 0.19.1
0.19.1 A small bug fix release for --build-resolution-cache. Bug fixes --build-resolution-cache: run-path entries that only resolve at run time are now recorded as search hints in run-path order instead of being dropped or baked in as bogus exact entries, so cached resolution keeps the semantics of a plain run-path walk. This covers empty and relative components, absolute directories absent at patch time (such as /run/opengl-driver/lib on NixOS), trailing empty components, and entries that exist but are not searchable directories when patching.