From 50aaa6524dbeea1b571132e5f7a63a95b2f6f8f6 Mon Sep 17 00:00:00 2001 From: Eldred Habert Date: Wed, 21 Dec 2022 23:43:57 +0100 Subject: [PATCH] Fix `-w` not coercing WRAMX sections to WRAM0 Fixes #1116 --- src/link/section.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/link/section.c b/src/link/section.c index 4b7e9367..74aabc05 100644 --- a/src/link/section.c +++ b/src/link/section.c @@ -248,7 +248,7 @@ static void doSanityChecks(struct Section *section, void *ptr) 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",