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 | ||
---|---|---|
145–151 | 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? | |
225–248 | This might be worth lifting out into its own method. |
llvm/lib/ExecutionEngine/JITLink/COFFLinkGraphBuilder.cpp | ||
---|---|---|
145–151 | 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. | |
225–248 | 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 | ||
---|---|---|
225–248 | 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?