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:
AntonioND
2017-04-02 00:18:19 +01:00
parent f0d4750ebc
commit adef2e18cc
3 changed files with 7 additions and 3 deletions

View File

@@ -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);
}