ref: 214e7b3030b009afc4ec0085f098f5212909e91b
parent: 24dd64f7886173ed5df312260f9f9eabfe8b0981
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Dec 27 08:25:05 EST 2017
[as] Initialize sec->mem in new sections
--- a/as/symbol.c
+++ b/as/symbol.c
@@ -202,6 +202,7 @@
if ((sec = sym->section) == NULL) {
sec = xmalloc(sizeof(*sec));
+ sec->mem = NULL;
sec->sym = sym;
sec->base = sec->max = sec->pc = sec->curpc = 0;
sec->next = seclist;