Hi all,

Microsoft's Visual C++ compiler has the ability to remove trampolines
generated by the linker (which ultimately calls __imp_SymbolName from the
DLL import address table) when linking with code that is intended to be
loaded from a DLL if link time optimization on their compiler was
specified, even if the symbol in question was not marked as msvc::dllimport
(which would normally be required for some an optimization). Is there a way
we can add this to gcc or ld as well, to enable it to call from the import
address table directly without having to go through the indirection? Or at
least where to look at in the linker's code, I'd be willing to help add
such an enhancement myself

best regards,
Julian

Reply via email to