-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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 corrupts shared libraries #1706
Comments
Patchelf at commit 29c085f is not working:
|
I tried using clang like you did, and 29c085f still works for me. Although I had to do this instead to link main:
Which platform did you test on? Did patchelf 0.9 work on your platform?
|
I did a git bisect. This is the commit that fixes it for me: |
My platform:
Patchelf v0.9 or latest corrupts shared libraries. Each commit from 44b7f95 to 29c085f not working correctly. In chrooted environment based on GNU libc patchelf v0.9 works fine. I have tested it on ARM (32bit) device with android 7.1.2 (LineageOS) - patchelf v0.9 corrupts libraries but latest (commit 29c085f) is working fine.
|
Should we updated the patchelf package to build from the latest git master of patchelf? |
@fornwall yes, patchelf can be updated to latest git master, at least this solves problem on android 7.1+. |
Great! I've updated patchelf to current git master (29c085fd9d3fc972f75b3961905d6b4ecce7eb2b), it's versioned as 0.9.0.1 for now until a proper upstream release is made. This updated package is now available for installation. Nice work @bluelightning32 and @xeffyr ! |
The current version of patchelf on termux, 0.9-1, corrupts shared libraries when it edits them on arm and aarch64. I didn't test other platforms.
Here's a repro of the problem, where the libc dependency is replaced with libc (should be a no-op). The example output is from aarch64, but arm output is similar:
Please upgrade the version of patchelf in the termux package repository to 0.10. Note that 0.10 isn't released yet. Any pre-released git commit should work. I verified 29c085f works.
The text was updated successfully, but these errors were encountered: