Tentative fix for bug #218 - allow unresolved symbols with trivial expressions to be exported

This commit is contained in:
ggn 2023-01-15 17:53:15 +02:00 committed by Shamus Hammons
parent 64dd9e00ec
commit 41ec2754c0
1 changed files with 1 additions and 1 deletions

2
sect.c
View File

@ -463,7 +463,7 @@ int ResolveFixups(int sno)
continue; continue;
if (esym) if (esym)
if (!(esym->sattr & DEFINED)) if (!(esym->sattr & DEFINED) && eval==0)
{ {
// If our expression still has an undefined symbol at this stage, it's bad news. // If our expression still has an undefined symbol at this stage, it's bad news.
// The linker is never going to resolve the expression, so that's an error. // The linker is never going to resolve the expression, so that's an error.