Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patchelf for elf i686 binary seems to be broken #585

Open
tesuji opened this issue Jan 23, 2025 · 0 comments
Open

patchelf for elf i686 binary seems to be broken #585

tesuji opened this issue Jan 23, 2025 · 0 comments
Labels

Comments

@tesuji
Copy link

tesuji commented Jan 23, 2025

Might relate to #524.
I tried splitting the patchelf command into 2 steps: --set-rpath, and then --set-interpreter.
But the binary is still broken.

Describe the bug

The binary patched with patchefl raises sigsegv when run.
Meanwhile, running via ./ld is OK.

Steps To Reproduce

Please include exact steps with an attached binary so that
another person can reproduce the problem.

> patchelf --set-rpath './' --set-interpreter ./ld-linux.so.2 ./horcruxes
> ./horcruxes
fish: Job 1, './horcruxes' terminated by signal SIGSEGV (Address boundary error)

Run via ld with clean binary:

> ./ld-linux.so.2 --library-path './' ./horcruxes
Voldemort concealed his splitted soul inside 7 horcruxes.
...

Expected behavior

A clear and concise description of what you expected to happen.

patchelf --version output: patchelf 0.18.0

Additional context: Debian GNU/Linux trixie/sid x86_64

Add any other context about the problem here.

@tesuji tesuji added the bug label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant