patchelf
patchelf copied to clipboard
A small utility to modify the dynamic linker and RPATH of ELF executables
**Describe the bug** Making check in src make[1]: Entering directory `/data/6190113/biosoft/patchelf/src' g++ -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.12\" -DPACKAGE_STRING=\"patchelf\ 0.12\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.12\" -I. -Wall -std=c++11 -D_FILE_OFFSET_BITS=64 -g -O2 -MT patchelf.o -MD -MP...
Most notably, this attempts to avoid growing the dynamic section when adding an rpath, since that results in repositioning the section, which means that existing IP-relative references to the `_DYNAMIC`...
FIX #100. In addition, the '--shrink-prefix' option can be used for specify rpath when executable is building in anothen buildroot. For instance, if an executable located in /tmp/buildroot and can...
**Describe the bug** First of all, I suspect that this is not a bug, and it's just some problem with what I'm trying to do. But this is the most...
Now that we have [a tutorial](https://nix.dev/tutorials/cross-compilation#cross-compilation) how to cross compile with Nix, it would be great if we supported more targets and ran the test using qemu user emulation.
Hi I'm trying to check the following issue mylib.so don't have SONAME. So, I added SONAME by using patchelf like below command `patchelf --set-soname "libmylib.so" libmylib.so` And i checked elf...
**Describe the bug** I'm looking at the code in [rewriteSectionExecutable#906](https://github.com/NixOS/patchelf/blob/master/src/patchelf.cc#L906), which calculates the extra size needed to make the section header into a grown file. It does this: ```cpp off_t...
**Describe the bug** Fail tests in latest git-version (01/03/2021). **Steps To Reproduce** Compile latest git-version, run `make check`. Problem is not reproduce in latest release (v.0.12 on 27 Aug 2020)....
**Describe the bug** The flag --clear-symbol-version is missing from the man page (patchelf.1) and the readme file. **Steps To Reproduce** `man patchelf` doesn't mention the flag --clear-symbol-version. **Expected behavior** A...
When I set the interpreter of the (non-public) Jamestown amd64 binary: ```sh $ patchelf --set-interpreter /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/ld-linux-x86-64.so.2 data/Jamestown-amd64 patchelf: patchelf.cc:382: void checkPointer(const FileContents&, void*, unsigned int): Assertion `q >= contents->data() &&...