shithub: rgbds

Download patch

ref: c485ad94f20401f6be5d76fb3772b5b34defd223
parent: 5ee058f21718406ff4cd5cd3c0c4811512ed167a
author: PikalaxALT <[email protected]>
date: Mon Feb 6 03:38:07 EST 2017

Fix WRAM0 symbols returning bank 512 to BANK() expression in linker

--- a/src/link/patch.c
+++ b/src/link/patch.c
@@ -68,6 +68,7 @@
 		errx(1, "*INTERNAL* UNKNOWN SYMBOL TYPE");
 	}
 
+	if (nBank == BANK_WRAM0) return 0;
 	if (nBank >= BANK_WRAMX && nBank <= (BANK_WRAMX+6))
 		return nBank - BANK_WRAMX + 1;
 	if (nBank >= BANK_VRAM && nBank <= (BANK_VRAM+1))