OpenBSD Handbook

OpenBSD 7.9 release · amd64 · Generated 2026-09-09

patchelf-0.18.0p1

utility for modifying existing ELF executables and libraries

Back to search · Not supplied

Description

PatchELF is a simple utility for modifying existing ELF executables and libraries. In particular, it can do the following: * Change the dynamic loader ("ELF interpreter") of executables * Change the `RPATH` of executables and libraries * Shrink the `RPATH` of executables and libraries * Remove declared dependencies on dynamic libraries (`DT_NEEDED` entries) * Add a declared dependency on a dynamic library (`DT_NEEDED`) * Replace a declared dependency on a dynamic library with another one (`DT_NEEDED`) * Change `SONAME` of a dynamic library

Package information

Ports path
sysutils/patchelf
Package architecture
amd64
Maintainer
Klemens Nanni <kn@openbsd.org>
Categories
sysutils
Available flavors
None listed
Only for architectures
aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, alpha, hppa, sparc64

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Build

Installing and updating packages · Package details as JSON