From 41ec2754c0bed6072d3255e371c34eaca448faff Mon Sep 17 00:00:00 2001 From: ggn Date: Sun, 15 Jan 2023 17:53:15 +0200 Subject: [PATCH] Tentative fix for bug #218 - allow unresolved symbols with trivial expressions to be exported --- sect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sect.c b/sect.c index 834df9d..12f9c89 100644 --- a/sect.c +++ b/sect.c @@ -463,7 +463,7 @@ int ResolveFixups(int sno) continue; 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. // The linker is never going to resolve the expression, so that's an error. -- 2.37.2