ref: f2724df5662ed204e41660907ac49ead75f79f34
parent: 646d71d927f6836fe0616669f0355e754afe202b
author: Antonio Niño Díaz <[email protected]>
date: Sun Apr 23 16:45:32 EDT 2017
Fix rgblink error messages about prohibited sections Signed-off-by: Antonio Niño Díaz <[email protected]>
--- a/src/link/object.c
+++ b/src/link/object.c
@@ -160,12 +160,12 @@
errx(1, "ROMX sections can't be used with option -t.");
}
if ((options & OPT_CONTWRAM) && (pSection->Type == SECT_WRAMX)) {
- errx(1, "WRAMX sections can't be used with option -w.");
+ errx(1, "WRAMX sections can't be used with options -w or -d.");
}
if (options & OPT_DMG_MODE) {
/* WRAMX sections are checked for OPT_CONTWRAM */
if (pSection->Type == SECT_VRAM && pSection->nBank == 1) {
- errx(1, "VRAM bank 1 can't be used with option -w.");
+ errx(1, "VRAM bank 1 can't be used with option -d.");
}
}
--- a/test/link/vram-fixed-dmg-mode-d.out
+++ b/test/link/vram-fixed-dmg-mode-d.out
@@ -1,1 +1,1 @@
-error: VRAM bank 1 can't be used with option -w.
+error: VRAM bank 1 can't be used with option -d.
--- a/test/link/wramx-dmg-mode-d.out
+++ b/test/link/wramx-dmg-mode-d.out
@@ -1,1 +1,1 @@
-error: WRAMX sections can't be used with option -w.
+error: WRAMX sections can't be used with options -w or -d.