1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-02 09:34:22 +00:00

ca65: Suppress '.size' error for multiply-defined symbols

This commit is contained in:
bbbradsmith 2023-05-03 11:57:50 -04:00
parent 805e98a7aa
commit 016008b6df

View File

@ -858,7 +858,11 @@ static void OneLine (void)
/* The line has switched the segment */ /* The line has switched the segment */
Size = 0; Size = 0;
} }
DefSizeOfSymbol (Sym, Size); /* 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);
} }
/* Line separator must come here */ /* Line separator must come here */