patchelf icon indicating copy to clipboard operation
patchelf copied to clipboard

A small utility to modify the dynamic linker and RPATH of ELF executables

Results 148 patchelf issues
Sort by recently updated
recently updated
newest added

**Describe the bug** I was fuzzing patchelf with AFL++ this weekend and came across a few crashes that appear to be related to `sh_offset` in the section headers not being...

bug

It'd be nice if patchelf could interpret colons `:::::::::::::::::::::` in an rpath as padding / scratch space to write in. On macOS the linker has a `-headerpad_max_install_names` flag which reserves...

I am trying to make a static build of patchelf that does not need any shared libraries. ``` ############################################# # Download and extract minimal Alpine system ############################################# wget http://dl-cdn.alpinelinux.org/alpine/v3.10/releases/x86_64/alpine-minirootfs-3.10.2-x86_64.tar.gz mkdir...

This is sort of a follow-up on #84 which added support for .gnu.version_r in --replace-needed. **Is your feature request related to a problem? Please describe.** My usecase for this is...

This is related to #145 but I think is a different issue, since in this case the problem happens when patchelf runs with the option `--no-default-lib ` (but if that...

bug

**Describe the bug** After altering an SO, it increases in size after every change, the effect is additive. **Steps To Reproduce** ``` # cp libusd_usd.so libusd_usd-test.so ; ls -lA libusd_usd-test.so...

bug

**Describe the bug** Hello. I patched a binary with: ./patchelf --set-interpreter /media/34GB/Arquivos-de-Programas-Linux/Glibc-2.17-32bit/lib/ld-linux.so.2 --set-rpath /media/34GB/Arquivos-de-Programas-Linux/Glibc-2.17-32bit/ /media/34GB/Arquivos-de-Programas-Linux/palemoon/palemoon then tried to run it with: "./palemoon", which returned: "Inconsistency detected by ld.so: dl-lookup.c: 877:...

bug

Add a new command to patchelf `--shrink-wrap` which shrink-wraps thebinary file. _patchelf_ at the moment works by modifying the RUNPATH to help locate files to the store however it only...

Similarly to a concept used in NixOS/nix codebase, introduce the `Finally` class that can be given a lambda to execute on destructor. The desired effect is to execute some code...

This addresses issue #44 for the case where the new soname is the same or shorter than the old. It's not great code. I'm not a C++ programmer, and I...