-
Notifications
You must be signed in to change notification settings - Fork 60
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
Handle symlinks to executables using $ORIGIN in rpath/runpath better #49
Comments
See also #46, |
Okay, Java is very odd, I can't explain it yet. Using the C rewrite:
So, you're reading this right, java has a soname
It also has a default interpreter:
If I pass it to the interpreter:
So, apparently that's not how java executes. |
Okay, it turns out that Note that this works:
If you execute It seems better (but note the man ldd security warning) to do
Not sure how to handle this best in libtree... warn if the user passes a symlink? Resolve the symlink? |
Thank you for your detailed writedown, that provided me a lot of insigths.
but I could not find libgimp being loaded
So I am lost at the moment if libtree has to handle symlinks on real world examples, including libraries as symlinks. |
It only applies to executables, not to libraries, because ld.so gets the resolved executable path (I think).
|
Another thing to note is that the linker likes to copy the soname into DT_NEEDED instead of the filename you provide in |
What is the expected output if a dependency cannot be found? I cannot resolve my Java dependencies:
The text was updated successfully, but these errors were encountered: