shithub: rgbds

Download patch

ref: be6bc7460ba14c6449248c29921baf466f079ff6
parent: efdd42c6a80945c78b396054ebfdbd4fd9f1f1a6
author: Antonio Niño Díaz <[email protected]>
date: Fri Mar 30 20:11:21 EDT 2018

Don't save '@' in map and sym files

Signed-off-by: Antonio Niño Díaz <[email protected]>

--- a/src/link/mapfile.c
+++ b/src/link/mapfile.c
@@ -120,6 +120,10 @@
 	for (i = 0; i < pSect->nNumberOfSymbols; i += 1) {
 		const struct sSymbol *pSym = pSect->tSymbols[i];
 
+		/* Don't print '@' */
+		if (strcmp(pSym->pzName, "@") == 0)
+			continue;
+
 		if ((pSym->pSection == pSect) && (pSym->Type != SYM_IMPORT)) {
 			if (mf) {
 				fprintf(mf, "           $%04X = %s\n",