aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-08-24 13:06:46 +0930
committerAlan Modra <amodra@gmail.com>2020-08-24 13:09:53 +0930
commit85d14aaeb757550d63254fae5c0415b782e59a29 (patch)
treefda72207237829297df00c73e7d56ea6e019d887 /gas/symbols.c
parentd04aee0f41da38682239b57af954bf294e26d9cb (diff)
downloadgdb-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.c3
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 (&notes, sizeof *xtra);
+ xtra = (struct xsymbol *) obstack_alloc (&notes, sizeof (*xtra));
+ memset (xtra, 0, sizeof (*xtra));
val = ent->lsy.value;
ent->sy.x = xtra;