зеркало из https://github.com/mozilla/gecko-dev.git
19 строки
796 B
Diff
19 строки
796 B
Diff
|
https://reviews.llvm.org/D41089
|
||
|
|
||
|
[COFF] Don't error out on undefined references to __enclave_config
|
||
|
|
||
|
This is required for linking the CRT from MSVC 2017 15.5.
|
||
|
|
||
|
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp
|
||
|
--- a/lld/COFF/Driver.cpp
|
||
|
+++ b/lld/COFF/Driver.cpp
|
||
|
@@ -1167,6 +1167,8 @@ void LinkerDriver::link(ArrayRef<const char *> ArgsArr) {
|
||
|
Symtab->addAbsolute(mangle("__guard_iat_table"), 0);
|
||
|
Symtab->addAbsolute(mangle("__guard_longjmp_count"), 0);
|
||
|
Symtab->addAbsolute(mangle("__guard_longjmp_table"), 0);
|
||
|
+ // Needed for MSVC 2017 15.5 CRT.
|
||
|
+ Symtab->addAbsolute(mangle("__enclave_config"), 0);
|
||
|
|
||
|
// This code may add new undefined symbols to the link, which may enqueue more
|
||
|
// symbol resolution tasks, so we need to continue executing tasks until we
|