asz80: always write the debug symbol base
authorAlan Cox <alan@linux.intel.com>
Sat, 28 Oct 2017 16:30:41 +0000 (17:30 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 28 Oct 2017 16:30:41 +0000 (17:30 +0100)
It avoids special cases and means the linker can size the table itself.

Applications/MWC/cmd/asz80/as4.c

index e3496be..340d0be 100644 (file)
@@ -179,8 +179,8 @@ static void writesymbols(SYM *hash[], FILE *ofp)
 {
        fseek(ofp, obh.o_symbase, SEEK_SET);
        dosymbols(hash, ofp, 1, putsymbol);
+       obh.o_dbgbase = ftell(ofp);
        if (debug_write) {
-               obh.o_dbgbase = ftell(ofp);
                dosymbols(uhash, ofp, 0, putsymbol);
        }
 }