yugr / Implib.so

POSIX equivalent of Windows DLL import libraries
MIT License
229 stars 33 forks source link

Support for exported variables #30

Closed ilya-fedin closed 1 year ago

ilya-fedin commented 1 year ago

I don't know how much it is in scope or how it's simple to implement but libX11 seem to export a lot of variables and it's not really possible to make it optional using Implib right now.

yugr commented 1 year ago

Unfortunately supporting variables is problematic because they may contain target-specific relocations which will need to be replicated in shim code. This is a lot of work.

Another problem is that library may internally reference it's own variables via private aliases so the overloaded copies in shim will not be used.

yugr commented 1 year ago

This is a known limitation of Implib.so. I have no plans to work on this atm.