Files
clang-p2996/llvm/lib/ExecutionEngine/JITLink/COFFLinkGraphBuilder.cpp
Lang Hames 98be16f20f [JITLink][COFF] Use regular external symbol resolution for __ImageBase.
This fixes a concurrency bug in the COFF_x86_64 backend: lookupAsync was used
to find __ImageBase without blocking to wait for the result.

Rather than adding promises / futures, this patch just adds an external
__ImageBase symbol if needed. This is the canonical JITLink solution for
resolving external symbols, and is simpler and more concurrency friendly than
using promises / futures with lookupAsync.
2024-12-23 12:28:14 +11:00

24 KiB