ref: 57997756b6533f5301744a0edf4e9a630513e671
parent: ab66b28fdf4616b84a48bc58fd870f7fa9e28db2
parent: 116569f54d6464421278c96d4ae638787e7d305a
author: Anthony J. Bentley <[email protected]>
date: Wed Jan 7 11:36:37 EST 2015
Merge branch 'symmapfix' of https://github.com/stag019/rgbds
--- a/src/link/mapfile.c
+++ b/src/link/mapfile.c
@@ -72,14 +72,13 @@
void
MapfileWriteSection(struct sSection * pSect)
{
- if (!mf && !sf)
- return;
-
SLONG i;
- fprintf(mf, " SECTION: $%04lX-$%04lX ($%04lX bytes)\n",
- pSect->nOrg, pSect->nOrg + pSect->nByteSize - 1,
- pSect->nByteSize);
+ if (mf) {
+ fprintf(mf, " SECTION: $%04lX-$%04lX ($%04lX bytes)\n",
+ pSect->nOrg, pSect->nOrg + pSect->nByteSize - 1,
+ pSect->nByteSize);
+ }
for (i = 0; i < pSect->nNumberOfSymbols; i += 1) {
struct sSymbol *pSym;