scc

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

commit b96cec7761fa4ee35633aebc9948a9a68f33e107
parent bf5f923ad705e6e2c275b3415c7b18d3b4a000b9
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 16 Dec 2017 17:12:51 +0100

[as] Mark as absolute symbols defined in absolute sections

Diffstat:
Mas/symbol.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/as/symbol.c b/as/symbol.c @@ -108,8 +108,10 @@ deflabel(char *name) 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;