Expose link def arrays to RGBASM

This commit is contained in:
ISSOtm
2020-02-03 14:58:25 +01:00
parent 09dff85d5b
commit 24f41ef897
6 changed files with 88 additions and 80 deletions

View File

@@ -509,11 +509,11 @@ static void checkcodesection(void)
*/
static void checksectionoverflow(uint32_t delta_size)
{
uint32_t maxsize = getmaxsectionsize(pCurrentSection->nType,
pCurrentSection->pzName);
uint32_t new_size = pCurrentSection->nPC + delta_size;
uint32_t maxSize = getmaxsectionsize(pCurrentSection->nType,
pCurrentSection->pzName);
uint32_t newSize = pCurrentSection->nPC + delta_size;
if (new_size > maxsize) {
if (newSize > maxSize) {
/*
* This check is here to trap broken code that generates
* sections that are too big and to prevent the assembler from
@@ -522,7 +522,7 @@ static void checksectionoverflow(uint32_t delta_size)
* The real check must be done at the linking stage.
*/
fatalerror("Section '%s' is too big (max size = 0x%X bytes, reached 0x%X).",
pCurrentSection->pzName, maxsize, new_size);
pCurrentSection->pzName, maxSize, newSize);
}
}