* PR26526, 5014c2d22b2 breaks compiling the Linux kernel for ARM
@ 2020-08-24 3:57 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2020-08-24 3:57 UTC (permalink / raw)
To: binutils
PR 26526
* symbols.c (local_symbol_convert): Clear out xtra.
diff --git a/gas/symbols.c b/gas/symbols.c
index 50b23d6ded..04017b6744 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;
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-24 3:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-24 3:57 PR26526, 5014c2d22b2 breaks compiling the Linux kernel for ARM Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).