patchelf
patchelf copied to clipboard
A small utility to modify the dynamic linker and RPATH of ELF executables
**Describe the bug** with the newest version of patchelf (pathelf-0.11 and master branch), remove `so` will cause a bug ``` Inconsistency detected by ld.so: dl-version.c: 205: _dl_check_map_versions: Assertion `needed !=...
glibc: commit: 6f962278e24bdf5cb5f310c5a17add41da95407c
**Describe the bug** since version 0.18.0 i get build errors on Amazon Linux 2 **Steps To Reproduce** ``` wget https://github.com/NixOS/patchelf/releases/download/0.18.0/patchelf-0.18.0.tar.gz tar zxf patchelf-0.18.0.tar.gz cd patchelf-0.18.0 ./configure make ``` i get...
**Describe the bug** Once 0.18 release is out, our build process started to fail with `ELF load command address/offset not properly aligned`. We use patchelf inside to add RPATH on...
According to the ELF specification, the alignment of loadable process segments should satisfy `(p_vaddr mod pagesize) == (p_offset mod pagesize)`. By 9f1c0af97b947687d3f916e10baa405b11d57584, `p_align` of the LOAD segment newly added by...
**Describe the bug + Steps To Reproduce** I'm trying to install mysql using `cpanm DBD::mysql` but that ends with an error: > /lib64/libc.so.6: version `GLIBC_2.35' not found (required by /home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/libgcc_s.so.1)...
If the value to be written with `--set-intrepreter` has already been set, the operation can be skipped. Similar checks are already performed by `modifySoname()` and can be implemented in `setInterpreter()`....
**Describe the bug** patchelf, if called with `--make-rpath-relative` or `--shrink-rpath` will remove directories from RPATH/RUNPATH which does not contain any library referenced as DT_NEEDED. This leads to crash or bugs...
**Describe the bug** Patching an chromium binary leaves the file corrupt. ``` $ patchelf --print-needed chromium patchelf: section header table out of bounds ``` ``` $ ldd chromium ldd: exited...