Patchelf

Latest version: v0.18.0.0

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

0.14

* Bug fixes:
- Fix corrupted library names when using --replace-needed multiple times
- Fix setting an empty rpath
- Don't try to parse .dynamic section of type NOBITS
- Fix use-after-free in normalizeNoteSegments
- Correct EINTR handling in writeFile
- MIPS: Adjust PT_MIPS_ABIFLAGS segment and DT_MIPS_RLD_MAP_REL dynamic section if present
- Fix binaries without .gnu.hash section
* Support loongarch architecture
* Remove limits on output file size for elf files
* Allow reading rpath from file
* Requires now C++17 for building

0.13.1

* Bug fixes:
- fix setting empty rpath
- use memcpy instead of strcpy to set rpath
- Don't try to parse .dynamic section of type NOBITS
- fix use-after-free in normalizeNoteSegments
- correct EINTR handling in writeFile
- Adjust PT_MIPS_ABIFLAGS segment if present
- Adjust DT_MIPS_RLD_MAP_REL dynamic section entry if present
- fix binaries without .gnu.hash section

0.13

* New `--add-rpath` flag.

* Bug fixes.

0.12

* New `--clear-symbol-version` flag.
* Better support for relocating NOTE sections/segments.
* Improved the default section alignment choice.
* Bug fixes.

0.11

* New `--output` flag.
* Some bug fixes.

0.10

What's Changed
* Teach --replace-needed to update .gnu.version_r table by njsmith in https://github.com/NixOS/patchelf/pull/85
* Fix bug in walking .gnu.version_r linked list by njsmith in https://github.com/NixOS/patchelf/pull/86
* no-rpath-prebuild: force pagesize to 4096 on prebuilt binaries by fsateler in https://github.com/NixOS/patchelf/pull/81
* Add '--allowed-rpath-prefixes' option to '--shrink-rpath' … by dezgeg in https://github.com/NixOS/patchelf/pull/98
* Avoid inflating file sizes needlessly and allow binaries to be stripped by rpurdie in https://github.com/NixOS/patchelf/pull/117
* configure.ac: use "command -v" instead of "type -p" by bjornfor in https://github.com/NixOS/patchelf/pull/129
* Better error messages when run on statically-linked (or otherwise weird) binaries by dezgeg in https://github.com/NixOS/patchelf/pull/121
* Bugfix for CompPhdr::operator() that could cause sort to fail. by kmillar in https://github.com/NixOS/patchelf/pull/139
* Allow multiple filenames to patch by lheckemann in https://github.com/NixOS/patchelf/pull/123
* fix reading and writing big files (e.g. > 2Gb) by stmarkevich in https://github.com/NixOS/patchelf/pull/148
* Fix issue 66: ignore 0th section header when sorting, don't overwrite NOBITS by ezquat in https://github.com/NixOS/patchelf/pull/149

New Contributors
* njsmith made their first contribution in https://github.com/NixOS/patchelf/pull/85
* chewi made their first contribution in https://github.com/NixOS/patchelf/pull/83
* dezgeg made their first contribution in https://github.com/NixOS/patchelf/pull/98
* jwilk made their first contribution in https://github.com/NixOS/patchelf/pull/119
* kroggen made their first contribution in https://github.com/NixOS/patchelf/pull/125
* bhipple made their first contribution in https://github.com/NixOS/patchelf/pull/140
* adam-trhon made their first contribution in https://github.com/NixOS/patchelf/pull/141
* kmillar made their first contribution in https://github.com/NixOS/patchelf/pull/139
* stmarkevich made their first contribution in https://github.com/NixOS/patchelf/pull/148
* ezquat made their first contribution in https://github.com/NixOS/patchelf/pull/149

**Full Changelog**: https://github.com/NixOS/patchelf/compare/0.9...0.10

Page 3 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.