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.
24 KiB
24 KiB