From: ggn Date: Sun, 15 Jan 2023 15:53:15 +0000 (+0200) Subject: Tentative fix for bug #218 - allow unresolved symbols with trivial expressions to... X-Git-Tag: v2.2.15~1 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=commitdiff_plain;h=41ec2754c0bed6072d3255e371c34eaca448faff Tentative fix for bug #218 - allow unresolved symbols with trivial expressions to be exported --- 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.