diff options
author | Alan Modra <amodra@gmail.com> | 2020-08-24 13:06:46 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-08-24 13:09:53 +0930 |
commit | 85d14aaeb757550d63254fae5c0415b782e59a29 (patch) | |
tree | fda72207237829297df00c73e7d56ea6e019d887 /gas/symbols.c | |
parent | d04aee0f41da38682239b57af954bf294e26d9cb (diff) | |
download | gdb-85d14aaeb757550d63254fae5c0415b782e59a29.zip gdb-85d14aaeb757550d63254fae5c0415b782e59a29.tar.gz gdb-85d14aaeb757550d63254fae5c0415b782e59a29.tar.bz2 |
PR26526, 5014c2d22b2 breaks compiling the Linux kernel for ARM
PR 26526
* symbols.c (local_symbol_convert): Clear out xtra.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r-- | gas/symbols.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |