This commit is contained in:
stag019
2014-01-29 00:18:10 -05:00
2 changed files with 11 additions and 6 deletions

View File

@@ -365,12 +365,12 @@ sym_GetValue(char *s)
}
return (getvaluefield(psym));
} else {
if ((nPass == 1) || (psym->nType & SYMF_IMPORT)) {
/* 0x80 seems like a good default value... */
return (0x80);
} else {
yyerror("'%s' not defined", s);
if (nPass == 2) {
/* Assume undefined symbols are imported from somewhere else */
psym->nType |= SYMF_IMPORT;
}
/* 0x80 seems like a good default value... */
return (0x80);
}
} else {
if (nPass == 1) {