]> git.sur5r.net Git - cc65/commitdiff
src/ld65/exports.c: Issue an error instead of a warning for duplicate global symbols.
authorChristian Groessler <chris@groessler.org>
Fri, 26 Apr 2019 22:04:38 +0000 (00:04 +0200)
committerOliver Schmidt <ol.sc@web.de>
Wed, 1 May 2019 08:57:48 +0000 (10:57 +0200)
src/ld65/exports.c

index 0f9ac1c10a54fa60ab7c6be0422df15a93aa59b7..160e0c797ecee215dcba12414e29a55077395820 100644 (file)
@@ -482,9 +482,9 @@ void InsertExport (Export* E)
                         Imp = Imp->Next;
                     }
                 } else {
-                    /* Duplicate entry, ignore it */
-                    Warning ("Duplicate external identifier: '%s'",
-                             GetString (L->Name));
+                    /* Duplicate entry, this is fatal */
+                    Error ("Duplicate external identifier: '%s'",
+                           GetString (L->Name));
                 }
                 return;
             }