Merge pull request #2081 from bbbradsmith/suppress-size-error
ca65: Suppress '.size' error for multiply-defined symbols
This commit is contained in:
@@ -858,8 +858,13 @@ static void OneLine (void)
|
|||||||
/* The line has switched the segment */
|
/* The line has switched the segment */
|
||||||
Size = 0;
|
Size = 0;
|
||||||
}
|
}
|
||||||
|
/* Suppress .size Symbol if this Symbol already has a multiply-defined error,
|
||||||
|
** as it will only create its own additional unnecessary error.
|
||||||
|
*/
|
||||||
|
if ((Sym->Flags & SF_MULTDEF) == 0) {
|
||||||
DefSizeOfSymbol (Sym, Size);
|
DefSizeOfSymbol (Sym, Size);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Line separator must come here */
|
/* Line separator must come here */
|
||||||
ConsumeSep ();
|
ConsumeSep ();
|
||||||
|
|||||||
Reference in New Issue
Block a user