Implements dllimport stubs using GOT table manager. Benefit of using GOT table manager is that we can just reuse jitlink-check architecture.
Details
Diff Detail
Event Timeline
Otherwise LGTM.
llvm/lib/ExecutionEngine/JITLink/COFFLinkGraphBuilder.cpp | ||
---|---|---|
147–153 | What prompted this change? I assume IMAGE_SCN_MEM_READ is specified on most sections, or you'd have seen this blow up already. Should we turn Read on by default for all sections, or only for some subset? | |
227 | This might be worth lifting out into its own method. |
llvm/lib/ExecutionEngine/JITLink/COFFLinkGraphBuilder.cpp | ||
---|---|---|
147–153 | I was getting "Illegal memory protection flag specified" error in getWindowsProtectionFlags. I thought it was None flag just supplied as it is but it might be with some interesting combination like W + X. I'll check again. | |
227 | I reallized the same when I was writing SECREL patch and splitted off into additional method in that patch. |
llvm/lib/ExecutionEngine/JITLink/COFFLinkGraphBuilder.cpp | ||
---|---|---|
227 | I meant directive parser patch |
What prompted this change?
I assume IMAGE_SCN_MEM_READ is specified on most sections, or you'd have seen this blow up already. Should we turn Read on by default for all sections, or only for some subset?