Fix linkerscript linking errors

The problems were introduced by the following commits:

- 959bfe2a9d

- 975200834e

Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
Antonio Niño Díaz
2018-01-25 22:07:16 +00:00
parent f779e724e2
commit b07a8501d6
2 changed files with 1 additions and 3 deletions

View File

@@ -65,8 +65,6 @@ static int32_t getrealbankfrominternalbank(int32_t n)
return n - BANK_INDEX_SRAM; return n - BANK_INDEX_SRAM;
} }
errx(1, "%s: Unknown bank %d", __func__, n);
return n; return n;
} }

View File

@@ -134,7 +134,7 @@ void script_SetCurrentSectionType(const char *type, uint32_t bank)
BANK_COUNT_WRAMX); BANK_COUNT_WRAMX);
} }
current_bank = BANK_INDEX_WRAMX + bank - 1; current_bank = BANK_INDEX_WRAMX + bank - 1;
current_real_bank = bank - 1; current_real_bank = bank;
return; return;
} else if (strcmp(type, "SRAM") == 0) { } else if (strcmp(type, "SRAM") == 0) {
if (bank >= BANK_COUNT_SRAM) { if (bank >= BANK_COUNT_SRAM) {