]> Shamusworld >> Repos - rmac/commitdiff
Tentative fix for bug #218 - allow unresolved symbols with trivial expressions to...
authorggn <ggn@atari.org>
Sun, 15 Jan 2023 15:53:15 +0000 (17:53 +0200)
committerShamus Hammons <jlhamm@acm.org>
Sun, 19 Mar 2023 20:38:45 +0000 (15:38 -0500)
sect.c

diff --git a/sect.c b/sect.c
index 834df9d9b5d1d58f60e56ac2e030a598a50979d0..12f9c89eae2f7eda973f63765816c21bb87f3c57 100644 (file)
--- 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.