ref: 1e1f75a7e9d7df35f4999c0ad3913ed61a92678b
parent: 763ac8c2a9e79fb0d76d351876a536f12f520335
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Sep 29 17:45:21 EDT 2017
[as] Remove the use of cursec in the symbol definition We don't know where the symbol is going to be used, and maybe the symbol is a register and if we do this or then we destroy the value that we wanted to put.
--- a/as/symbol.c
+++ b/as/symbol.c
@@ -91,7 +91,7 @@
sym = xmalloc(sizeof(*sym));
sym->name = xstrdup(name);
- sym->flags = (cursec->flags & TMASK) | FLOCAL | FUNDEF | type;
+ sym->flags = FLOCAL | FUNDEF | type;
sym->desc = 0;
sym->value = 0;
sym->next = *list;