scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 4bc6e70eee07e3206f82a59fbb3e5e06e74c69dd
parent cdd9b75ceafd8fd974e06199c50005b0510f9fda
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 12 Dec 2017 09:01:37 +0000

[as] Fix value of symbols

It was using the offset in the myro file instead of using the
actual value recorded by the second pass of the assembler.

Diffstat:
Mas/myro.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/as/myro.c b/as/myro.c @@ -116,7 +116,7 @@ writesymbols(FILE *fp) symbol.type = -1; symbol.section = -1; symbol.flags = getsymflags(sym); - symbol.offset = off; + symbol.offset = sym->value; symbol.len = 0; off += wrmyrosym(fp, &symbol); }