-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
Regression in 0.18.0: --set-rpath creates broken header alignment #528
Comments
Might be related to #475 |
I can see a very similar issue in the latest Ubuntu Focal with In the meantime, here is my minimal example that you can try e.g. in a Docker container:
I am attaching a side-by-side diff of |
Still an issue with HEAD... |
https: //github.com/NixOS/patchelf/issues/528 Committed from host : Bola
Any updates on this? We've hit this bug in the context of creating wheels for a project (we used patchelf 0.18.0 and the library was compiled with gcc < 12, not sure if the latter matters) |
I wonder if 0e33894 might fix this? It doesn't seem like anyone's actually paying attention to this issue, even though it's been making what's been the latest release of |
I also encountered this issue when running on older .deb-based distros (Ubuntu 20.04, Debian 10) on Ubuntu 22.04 and Debian 11 this was not manifested. On all the distros it was version 0.18.0, compiled from source. Switching to 0.17.2 solved it. |
On Wednesday December 18 2024 05:10:34 blochl wrote:
I also encountered this issue when running on older .deb-based distros (Ubuntu 20.04, Debian 10) on Ubuntu 22.04 and Debian 11 this was not manifested.
Should we read the latter part as meaning the issue doesn't occur on newer distros, i.e. presumably with newer ld.so (= libc)? If ELF specs have evolved, patchelf should also, but IMHO ideally with dynamic detection of whatever spec is supported by the system it runs on. Or at the very least via compile-time logic.
|
Describe the bug
Using
--set-rpath
with 0.18.0 creates a broken header alignment. Using the patched library leads toerror while loading shared libraries: libcudart.so.11.0: ELF load command address/offset not properly aligned
. 0.17.2 works fineSteps To Reproduce
patchelf-regression.zip
Note that VirtAddr-Offset does is not aligned by Align
Expected behavior
0.17.2 produces
Note that VirtAddr-Offset does is aligned by Align
patchelf --version
outputpatchelf 0.18.0
The text was updated successfully, but these errors were encountered: