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

Merge pull request #2081 from bbbradsmith/suppress-size-error

ca65: Suppress '.size' error for multiply-defined symbols
This commit is contained in:
Bob Andrews 2023-05-04 00:36:48 +02:00 committed by GitHub
commit b743b1a8c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -858,7 +858,12 @@ static void OneLine (void)
/* The line has switched the segment */
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 */