From 60cf3f8a8c26ad4131c5842238cefe6b45a67d9f Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Sat, 12 Oct 2019 10:57:11 +0200 Subject: [PATCH] Revert LLD patch The source is now squeaky-clean again. --- deps/lld/COFF/DriverUtils.cpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/deps/lld/COFF/DriverUtils.cpp b/deps/lld/COFF/DriverUtils.cpp index 5003a99da4..4360ac23b2 100644 --- a/deps/lld/COFF/DriverUtils.cpp +++ b/deps/lld/COFF/DriverUtils.cpp @@ -638,18 +638,10 @@ void fixupExports() { if (config->killAt && config->machine == I386) { for (Export &e : config->exports) { - if (!e.name.empty() && e.name[0] == '?') - continue; - e.symbolName = e.name; - // Trim off the trailing decoration. Symbols will always have a - // starting prefix here (either _ for cdecl/stdcall, @ for fastcall - // or ? for C++ functions). Vectorcall functions won't have any - // fixed prefix, but the function base name will still be at least - // one char. - e.name = e.name.substr(0, e.name.find('@', 1)); - // By making sure E.SymbolName != E.Name for decorated symbols, - // writeImportLibrary writes these symbols with the type - // IMPORT_NAME_UNDECORATE. + e.name = killAt(e.name, true); + e.exportName = killAt(e.exportName, false); + e.extName = killAt(e.extName, true); + e.symbolName = killAt(e.symbolName, true); } }