mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 10:42:07 +00:00
Fix bank assignments from linkerscript
Even though the bank number was read from the linkerscript and the linker verified that each section could be mapped in the final rom, the bank number was never actually set by the linkerscript parser. Signed-off-by: AntonioND <antonio_nd@outlook.com>
This commit is contained in:
@@ -213,6 +213,7 @@ void script_OutputSection(const char *section_name)
|
||||
|
||||
/* Move section to its place. */
|
||||
bank[current_bank].address +=
|
||||
AssignSectionAddressByName(section_name, bank[current_bank].address);
|
||||
AssignSectionAddressAndBankByName(section_name,
|
||||
bank[current_bank].address, current_real_bank);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user