Implib.so
Implib.so copied to clipboard
POSIX equivalent of Windows DLL import libraries
very thanks for your useful tool, i have a question about cfi https://github.com/yugr/Implib.so/blob/bbca01e0109d51ef1b870cbc8cf953372136b8ad/arch/x86_64/table.S.tpl#L29 .cfi_adjust_cfa_offset 8; should this offset be 16, since previous instruction call also push IP to stack?
https://github.com/yugr/Implib.so/blob/bbca01e0109d51ef1b870cbc8cf953372136b8ad/arch/common/init.c.tpl#L60 When implib is built to export wrapped symbols (-DIMPLIB_EXPORT_SHIMS), the imported library initializers may end up resolving some of the symbols to the already-available symbols provided by the wrapper...
It avoids failures when we attempt to resolve a symbol from multiple threads simultaneously with some of the threads ending up tripping the is_lib_loading checks.
Our project (JAX) uses implib.so internally, and one of our end users asked for POWER architecture support, which requires POWER support in implib.so. It'd be great if POWER support were...