1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-03 06:29:36 +00:00

Fixed a bug

git-svn-id: svn://svn.cc65.org/cc65/trunk@3558 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2005-07-29 20:33:25 +00:00
parent 33e86250ea
commit b6ac59be03

View File

@ -55,6 +55,7 @@
#include "exports.h"
#include "global.h"
#include "o65.h"
#include "objdata.h"
#include "scanner.h"
#include "spool.h"
@ -1355,6 +1356,7 @@ static void ParseSymbols (void)
long Val = 0L;
int Weak = 0;
Export* E;
/* Remember the name */
unsigned Name = GetStringId (CfgSVal);
@ -1446,7 +1448,7 @@ static void ParseSymbols (void)
}
/* Check if the symbol is already defined */
if (FindExport (Name) != 0) {
if ((E = FindExport (Name)) != 0 && !IsUnresolvedExport (E)) {
/* If the symbol is not marked as weak, this is an error.
* Otherwise ignore the symbol from the config.
*/
@ -1458,8 +1460,8 @@ static void ParseSymbols (void)
CreateConstExport (Name, Val);
}
/* Skip the semicolon */
CfgConsumeSemi ();
/* Skip the semicolon */
CfgConsumeSemi ();
}
/* Remember we had this section */