[lld] [LLD][COFF] Move delay IAT into its own .didat section. (PR #137100)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 10 00:23:02 PDT 2025


mstorsjo wrote:

> > Note that lld-link aims to be compatible with MSVC. The MinGW mode differs in several respects, but even that shouldn't diverge unnecessarily when it can be avoided.
> 
> So is that like Wine, where it aims to be bug-for-bug compatible, or does the spec control and if MS link doesn't conform that's a bug on their side?

Somewhere inbetween I would say. I don't think it's a goal of lld-link to mirror any MS link.exe bug per se, but if it is relevant for actual user cases, it is sometimes done.

For this particular case though, I don't feel very attached to following the spec to the letter if that's not what actually is being done in MS link.exe. I guess the primary question that still stands open is how to enable `IMAGE_GUARD_PROTECT_DELAYLOAD_IAT|IMAGE_GUARD_DELAYLOAD_IAT_IN_ITS_OWN_SECTION` with MS link.exe?

https://github.com/llvm/llvm-project/pull/137100


More information about the llvm-commits mailing list