shithub: scc

Download patch

ref: 0645a868520feb0fac8932b08b6c4e1258b58c0c
parent: 64fa51cfd8c6099b14a3de110f1b620d6f12f242
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Dec 16 12:12:51 EST 2017

[as] Mark as absolute symbols defined in absolute sections

--- a/as/symbol.c
+++ b/as/symbol.c
@@ -108,8 +108,10 @@
 	sym = lookup(name);
 	if (pass == 1 && (sym->flags & FUNDEF) == 0)
 		error("redefinition of label '%s'", name);
-	if (cursec->flags & SABS)
+	if (cursec->flags & SABS) {
 		sym->flags &= ~FRELOC;
+		sym->flags |= FABS;
+	}
 	sym->flags &= ~FUNDEF;
 	sym->value = cursec->curpc;
 	sym->section = cursec;