[lld] [LLD][COFF] Move delay IAT into its own .didat section. (PR #137100)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 23 06:19:17 PDT 2025
================
@@ -1083,7 +1083,7 @@ void Writer::createSections() {
pdataSec = createSection(".pdata", data | r);
idataSec = createSection(".idata", data | r);
edataSec = createSection(".edata", data | r);
- didatSec = createSection(".didat", data | r);
+ didatSec = createSection(".didat", data | r | w);
----------------
kkent030315 wrote:
I think we should put this under some condition. Something like:
```c
if (delay_load_protected) // Check /didatownsection or guard flags directly?
didatSec = createSection(".didat", data | r | w);
else
didatSec = createSection(".didat", data | r);
```
https://github.com/llvm/llvm-project/pull/137100
More information about the llvm-commits
mailing list