From be6bc7460ba14c6449248c29921baf466f079ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ni=C3=B1o=20D=C3=ADaz?= Date: Sat, 31 Mar 2018 00:11:21 +0100 Subject: [PATCH] Don't save '@' in map and sym files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Antonio Niño Díaz --- src/link/mapfile.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/link/mapfile.c b/src/link/mapfile.c index dd9cb8d8..46dd69ed 100644 --- a/src/link/mapfile.c +++ b/src/link/mapfile.c @@ -120,6 +120,10 @@ void MapfileWriteSection(const struct sSection *pSect) 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",