mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 03:52:08 +00:00
Expose link def arrays to RGBASM
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user