patchelf
patchelf copied to clipboard
A small utility to modify the dynamic linker and RPATH of ELF executables
**Describe the bug** Running `patchelf` on any ELF file causes `llvm-strip-14` to corrupt it afterwards. (One might argue that this is an llvm-strip bug, and it probably is, but patchelf...
All tests pass. Also explicitly specifies -no-pie for executables which should have it disabled, to be compatible with gccs built with --enable-default-pie.
It is sometimes useful to be able to change the version tag of a given symbol. One good example of this use case is a recent breaking change in Qt6....
Use pledge(2)[0] to limit patchelf(1) to read, write and create files. It never deals with TTY, network, process management or other subsystems. Do so immediately in main() since mainWrapped() itself...
Replace non-portable GNU `-i, --hardware-platform` with `-m[, --machine]` to fix "unknown error" usage error on, e.g. OpenBSD. Also fix the check's backwards logic. OpenBSD/spar64 now prints -skipping test: not supported...
CTAD is not working here.
What versions support redhat6
**Describe the bug** Test repeated-updates.sh fails by creating 3 segments instead of the maximum expected 2 Full build log: https://buildd.debian.org/status/fetch.php?pkg=patchelf&arch=mips64el&ver=0.18.0-1&stamp=1695630651&raw=0 **Steps To Reproduce** Build on mips64el and see it fail....
I have a binary with unsorted sections: ``` ... Section Headers: [Nr] Name Type Address Off Size ES Flg Lk Inf Al [ 0] NULL 0000000000000000 000000 000000 00 0...
If I try to run patchelf on the libm.so which is shipped with centos6, I get a corrupted file: (for convenience, you can find the file also here: http://antocuni.eu/misc/libm-2.12.so) ```...