patchelf
patchelf copied to clipboard
A small utility to modify the dynamic linker and RPATH of ELF executables
I fixed zsh completion which is not working properly (like #549), now files can be completed. What's more, I add a feature that when triggering `Tab` where dependencies should be...
**Describe the bug** `replace-needed.sh` test fails on 32-bit arm (armv6/7): ``` [ 36s] FAIL: replace-needed.sh [ 36s] ======================= [ 36s] [ 36s] patching ELF file 'big-dynstr' [ 36s] replacing DT_NEEDED...
Hi, I noticed that patchelf doesn't update __ehdr_start symbol. It breaks binaries built with clang (version >=13 ) with -fprofile-instr-generate flag. Here is the reproducer: ``` $ cat foo.c int...
`patchelf --set-interpreter` and `patchelf --set-rpath` depend on the order (at least on i686-linux)
**Describe the bug** `patchelf --set-interpreter` following `patchelf --set-rpath` may produce broken executables `patchelf --set-rpath` following `patchelf --set-interpreter` works well for the same files **Context** The latest released LDC for i686-linux...
**Describe the bug** Using `--set-rpath` with 0.18.0 creates a broken header alignment. Using the patched library leads to `error while loading shared libraries: libcudart.so.11.0: ELF load command address/offset not properly...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 25 to 26. Release notes Sourced from cachix/install-nix-action's releases. v26 Bump to Nix 2.20.5 to address CVE-2024-27297 / GHSA-2ffj-w4mj-pg37. Commits 8887e59 Nix: 2.20.5 39a075c bump See full...
I am compiling the patchelf 0.18.0 for s390x and getting these failure, Compilation failure: ================= [ 70s] FAIL: rename-dynamic-symbols.sh [ 70s] =============================== [ 70s] [ 70s] patching ELF file '/home/abuild/rpmbuild/BUILD/patchelf-0.18.0/tests/libmany-syms.so'...
when building and then checking patchelf on openSUSE Leap 15.5, the rename-dynamic-symbols.sh test fails. The test builds a test library and executable called many-syms-main, then runs patchelf to rename symbols...
**Describe the bug** Attempting to patchelf a rust executable to run on NixOS and hitting the error from the subject: ``` $ patchelf --set-interpreter /nix/store/8mc30d49ghc8m5z96yz39srlhg5s9sjj-glibc-2.38-44/lib/ld-linux-x86-64.so.2 ./GlamorousToolkit-cli patchelf: cannot normalize PT_NOTE...
Closes https://github.com/NixOS/patchelf/issues/531. Closes https://github.com/NixOS/patchelf/issues/482. Closes https://github.com/NixOS/patchelf/issues/244. Upstream-wise, affects https://github.com/NixOS/nixpkgs/issues/226339. (didn't want to write `close` so that merging this merge request doesn't close that issue at once) # Abstract Patching an...