diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index 4aa9e11a9f021a6..ed2e1341c1766ea 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -2934,7 +2934,7 @@ void LinkerDriver::link(opt::InputArgList &args) { sb->getName().substr(0, sb->getName().size() - 16); StackError = "Function " + FuncName.str() + " utilizes too much stack space and will cause " - "undefined behavior in the program. Refer to a" + "undefined behavior in the program. Refer to a " "previously emitted warning for more information."; break; } else if (sb->getName().ends_with("::call_overflow")) { @@ -2950,9 +2950,13 @@ void LinkerDriver::link(opt::InputArgList &args) { } if (!StackError.empty() && hasEntrypoint) { - report_fatal_error(StringRef(StackError)); + //report_fatal_error(StringRef(StackError)); } } + for (ELFFileBase *file : ctx.objectFiles) + for (Symbol *sym : file->getLocalSymbols()) + report_fatal_error(sym->getName()); + // Make copies of any input sections that need to be copied into each // partition. diff --git a/llvm/lib/Target/SBF/SBFRegisterInfo.cpp b/llvm/lib/Target/SBF/SBFRegisterInfo.cpp index fffa8c298600162..ad7067ef2c3d76c 100644 --- a/llvm/lib/Target/SBF/SBFRegisterInfo.cpp +++ b/llvm/lib/Target/SBF/SBFRegisterInfo.cpp @@ -72,7 +72,7 @@ static void WarnSize(int Offset, MachineFunction &MF, DebugLoc& DL) OffendingFunction.setName(OffendingFunction.getName() + "::stack_overflow"); - OffendingFunction.setLinkage(GlobalValue::LinkageTypes::ExternalLinkage); + //OffendingFunction.setLinkage(GlobalValue::LinkageTypes::ExternalLinkage); } else { DiagnosticInfoUnsupported DiagStackSize( MF.getFunction(), @@ -179,7 +179,7 @@ int SBFRegisterInfo::resolveInternalFrameIndex( OffendingFunction.setName(OffendingFunction.getName() + "::call_overflow"); - OffendingFunction.setLinkage(GlobalValue::LinkageTypes::ExternalLinkage); + //OffendingFunction.setLinkage(GlobalValue::LinkageTypes::ExternalLinkage); } Offset = -Offset; } else if (MF.getSubtarget().getEnableNewCallConvention() &&