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

ELF reference and rpath #8

Open
haampie opened this issue Jul 13, 2019 · 1 comment
Open

ELF reference and rpath #8

haampie opened this issue Jul 13, 2019 · 1 comment

Comments

@haampie
Copy link

haampie commented Jul 13, 2019

In the comments of the include files of this lib:

it appears that according to the ELF standard, the rpath is ignored in libraries, therefore if the path points to an executable, an empty string is returned

I believe ldd does not agree with this (running on ubuntu 16), as it also respects rpath of shared libraries.

Did you use http://www.sco.com/developers/gabi/2003-12-17/ch5.dynamic.html#tag_encodings as a reference?

It seems Solaris has its own specs (https://docs.oracle.com/cd/E23824_01/html/819-0690/chapter6-42444.html#chapter6-tbl-52) that do not ignore rpath in shared libs.

@haampie
Copy link
Author

haampie commented Jul 13, 2019

Maybe it's worth pointing out that System V Application Binary Interface reference is still a DRAFT since 2003 :/

See http://www.sco.com/developers/gabi/2003-12-17/contents.html

Edit: ok, so LSB 5.0.0 is probably the actual standard, and they confirm the ELF spec is a combination of System V Application Binary Interface and other references (https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic.html#OBJFMT)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant