Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte committed Jul 17, 2024
1 parent 4bedffa commit 32dca06
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions lld/ELF/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand All @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions llvm/lib/Target/SBF/SBFRegisterInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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<SBFSubtarget>().getEnableNewCallConvention() &&
Expand Down

0 comments on commit 32dca06

Please sign in to comment.