diff --git a/src/link/section.cpp b/src/link/section.cpp index 2d5b1658..4be65ec8 100644 --- a/src/link/section.cpp +++ b/src/link/section.cpp @@ -223,6 +223,7 @@ static void doSanityChecks(Section §ion) { bankModeError = true; } else { section.type = SECTTYPE_ROM0; + section.isBankFixed = false; } } if (options.isWRAM0Mode && section.type == SECTTYPE_WRAMX) { @@ -235,6 +236,7 @@ static void doSanityChecks(Section §ion) { bankModeError = true; } else { section.type = SECTTYPE_WRAM0; + section.isBankFixed = false; } } if (options.isDmgMode && section.type == SECTTYPE_VRAM && section.isBankFixed diff --git a/test/link/expand-home.asm b/test/link/expand-home.asm new file mode 100644 index 00000000..3e838661 --- /dev/null +++ b/test/link/expand-home.asm @@ -0,0 +1,5 @@ +SECTION "rom", ROMX, BANK[1] +Label:: db 1 + +SECTION "ram", WRAMX, BANK[1] +wLabel:: ds 1 diff --git a/test/link/expand-home.flags b/test/link/expand-home.flags new file mode 100644 index 00000000..e5c18024 --- /dev/null +++ b/test/link/expand-home.flags @@ -0,0 +1 @@ +-t -w diff --git a/test/link/expand-home.out b/test/link/expand-home.out new file mode 100644 index 00000000..e69de29b diff --git a/test/link/expand-home.out.bin b/test/link/expand-home.out.bin new file mode 100644 index 00000000..6b2aaa76 --- /dev/null +++ b/test/link/expand-home.out.bin @@ -0,0 +1 @@ + \ No newline at end of file