From 9d65043f4ffdf78fd24bcec7dd1c55ef42eda853 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 28 Oct 2017 17:30:41 +0100 Subject: [PATCH] asz80: always write the debug symbol base It avoids special cases and means the linker can size the table itself. --- Applications/MWC/cmd/asz80/as4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/MWC/cmd/asz80/as4.c b/Applications/MWC/cmd/asz80/as4.c index e3496be5..340d0be8 100644 --- a/Applications/MWC/cmd/asz80/as4.c +++ b/Applications/MWC/cmd/asz80/as4.c @@ -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); } } -- 2.34.1