Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Handle linker scripts #5
Conversation
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wadey commentedNov 22, 2010
On some OSes (such as Ubuntu linux), a .so file can contain a linker script which will point to the correct shared library to use. This will cause dlopen to raise an error.
As an example, here is what
/usr/lib/libc.solooks like on Ubuntu 10.04:I found this Haskell GHC ticket from when they ran into the same problem: http://hackage.haskell.org/trac/ghc/ticket/2615 . I ported their solution to node-ffi (basically, see if the error message is "invalid ELF header" and then try to read the file and look for the GROUP section).