From 03bb2d04c3d0211504bc2b6920a64caee3bee260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ni=C3=B1o=20D=C3=ADaz?= Date: Sun, 9 Jul 2017 15:08:58 +0100 Subject: [PATCH] Increment version number of object files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous change has broken compatibility of object files, so it is needed to increment the version number to make the linker reject files generated with the old code. Signed-off-by: Antonio Niño Díaz --- src/asm/output.c | 2 +- src/link/object.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/asm/output.c b/src/asm/output.c index 99044900..34c6766e 100644 --- a/src/asm/output.c +++ b/src/asm/output.c @@ -504,7 +504,7 @@ out_WriteObject(void) struct PatchSymbol *pSym; struct Section *pSect; - fwrite("RGB4", 1, 4, f); + fwrite("RGB5", 1, 4, f); fputlong(countsymbols(), f); fputlong(countsections(), f); diff --git a/src/link/object.c b/src/link/object.c index 1f6a2334..1e40eb83 100644 --- a/src/link/object.c +++ b/src/link/object.c @@ -336,8 +336,7 @@ obj_ReadOpenFile(FILE * pObjfile, char *tzObjectfile) tzHeader[4] = 0; if (strncmp(tzHeader, "RGB", 3) == 0) { switch (tzHeader[3]) { - case '3': - case '4': // V4 supports OAM sections, but is otherwise identical + case '5': obj_ReadRGB(pObjfile); break; default: