shithub: rgbds

Download patch

ref: 50aaa6524dbeea1b571132e5f7a63a95b2f6f8f6
parent: 01f1703dfb64b6a859e04e077249881c3857dd06
author: Eldred Habert <[email protected]>
date: Wed Dec 21 18:43:57 EST 2022

Fix `-w` not coercing WRAMX sections to WRAM0

Fixes #1116

--- a/src/link/section.c
+++ b/src/link/section.c
@@ -248,7 +248,7 @@
 			error(NULL, 0, "%s: WRAMX sections must be in bank 1 with options -w or -d",
 			     section->name);
 		else
-			section->type = SECTTYPE_WRAMX;
+			section->type = SECTTYPE_WRAM0;
 	}
 	if (isDmgMode && section->type == SECTTYPE_VRAM && section->bank == 1)
 		error(NULL, 0, "%s: VRAM bank 1 can't be used with option -d",