shithub: scc

Download patch

ref: f7685e70ed2dfe601aba35916c3ce8e6281d68b6
parent: d9cfe3ba586178478b6d89751132b7767b7e17af
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Dec 12 04:01:37 EST 2017

[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.

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