diff options
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/symbols.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 65b662d..1aa2792 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2020-08-24 Alan Modra <amodra@gmail.com> + + PR 26526 + * symbols.c (local_symbol_convert): Clear out xtra. + 2020-08-21 Cooper Qu <cooper.qu@linux.alibaba.com> * config/tc-csky.c (CSKY_ISA_803R2): New. diff --git a/gas/symbols.c b/gas/symbols.c index 50b23d6..04017b6 100644 --- a/gas/symbols.c +++ b/gas/symbols.c @@ -382,7 +382,8 @@ local_symbol_convert (void *sym) ++local_symbol_conversion_count; - xtra = (struct xsymbol *) obstack_alloc (¬es, sizeof *xtra); + xtra = (struct xsymbol *) obstack_alloc (¬es, sizeof (*xtra)); + memset (xtra, 0, sizeof (*xtra)); val = ent->lsy.value; ent->sy.x = xtra; |