public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PR28826 x86_64 ld segfaults building xen
@ 2022-01-28  6:26 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-01-28  6:26 UTC (permalink / raw)
  To: binutils

Fallout from commit e86fc4a5bc37

	PR 28826
	* coffgen.c (coff_write_alien_symbol): Init dummy to zeros.

diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index 293fce2baf3..bec1a424831 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -1092,6 +1092,7 @@ coff_write_alien_symbol (bfd *abfd,
 	memset (isym, 0, sizeof (*isym));
       return true;
     }
+  memset (dummy, 0, sizeof dummy);
   native = dummy;
   native->is_sym = true;
   native[1].is_sym = false;

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-28  6:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-28  6:26 PR28826 x86_64 ld segfaults building xen 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).