Tuesday, May 25, 2021

Re: NEW: patchelf

Klemens Nanni writes:

> With ld.so(1) fixed as of today, patchelf(1) (and now the resulting ELF
> executable as well) just works on OpenBSD in that it passes 28/29 tests
> and allows to replace interpreter as well as libraries in ELF files.
>
> Information for inst:patchelf-0.12
>
> Comment:
> utility for modifying existing ELF executables and libraries
>
> 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
>
> Maintainer: Klemens Nanni <kn@openbsd.org>
>
>
> Tested on amd64 and arm64.
>
> Feedback? OK?

OK abieber@

No comments:

Post a Comment