authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-10-12 10:57:11+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-10-12 10:57:11+02:00
log60cf3f8a8c26ad4131c5842238cefe6b45a67d9f
tree1f237e28dc36b79dc9ca68e49fe587bb046f6532
parent2b624fea84abdd963ea06aca648b4da1477ec65f

Revert LLD patch

The source is now squeaky-clean again.

1 files changed, 4 insertions(+), 12 deletions(-)

deps/lld/COFF/DriverUtils.cpp+4-12
......@@ -638,18 +638,10 @@ void fixupExports() {
638638
639639 if (config->killAt && config->machine == I386) {
640640 for (Export &e : config->exports) {
641 if (!e.name.empty() && e.name[0] == '?')
642 continue;
643 e.symbolName = e.name;
644 // Trim off the trailing decoration. Symbols will always have a
645 // starting prefix here (either _ for cdecl/stdcall, @ for fastcall
646 // or ? for C++ functions). Vectorcall functions won't have any
647 // fixed prefix, but the function base name will still be at least
648 // one char.
649 e.name = e.name.substr(0, e.name.find('@', 1));
650 // By making sure E.SymbolName != E.Name for decorated symbols,
651 // writeImportLibrary writes these symbols with the type
652 // IMPORT_NAME_UNDECORATE.
641 e.name = killAt(e.name, true);
642 e.exportName = killAt(e.exportName, false);
643 e.extName = killAt(e.extName, true);
644 e.symbolName = killAt(e.symbolName, true);
653645 }
654646 }
655647