public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Linker removal of trampolines on Microsoft Windows targets
@ 2023-04-04 13:20 Julian Waters
  0 siblings, 0 replies; only message in thread
From: Julian Waters @ 2023-04-04 13:20 UTC (permalink / raw)
  To: gcc

[-- Attachment #1: Type: text/plain, Size: 714 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-04 13:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-04 13:20 Linker removal of trampolines on Microsoft Windows targets Julian Waters

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).