-
-
Notifications
You must be signed in to change notification settings - Fork 475
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 tests fail to pass on powerpc64 #53
Comments
This is not only a false positive. It seems that patchelf corrupt binary under powerpc64 :
|
Anyone has seen something similar this before ? |
I add you a little over trace on this when using only native system tools
|
From the previous trace, it --set-interpreter seems to be broken for powerpc64. |
I see the code does try to be correct with endian issues, but has it ever been tested on a big-endian HW? There could be a bug in the handling (or introduced since last testing). |
From the previous trace, Here you have : The readelf output after patching and here is the diff between both. |
Notes in the project says it has been tested on powerpc 32 bits which is big endian. But I do'nt think any tests has been executed on powerpc64. |
I just did the same test than before but using 32-bits ELF binaries. It works perfectly on PPC 32 bits. The problem is triggered only in PPC 64 bits. |
I found the issue. Powerpc64 kernels can have a page size up to 65K. The Patchelf should use sysconf(_SC_PAGE_SIZE) when available to detect the kernel page size. I'm going to make a patch for this. |
…issue NixOS#53 related to prtability on powerpc64 architecture
…issue NixOS#53 related to prtability on powerpc64 architecture
…issue NixOS#53 related to prtability on powerpc64 architecture
Patch provided with #54 |
…issue #53 related to prtability on powerpc64 architecture
Solved with #54 |
…issue NixOS#53 related to prtability on powerpc64 architecture
The patchelf "make check" tests fail to execute on linux powerpc64.
PASS: set-interpreter-short.sh
FAIL: set-interpreter-long.sh
FAIL: set-rpath.sh
FAIL: no-rpath.sh
FAIL: big-dynstr.sh
FAIL: set-rpath-library.sh
PASS: soname.sh
This is a blocking issue for the usage of Nix/NixOS on the power architecture.
The text was updated successfully, but these errors were encountered: