From: Alan Modra Date: Fri, 28 Jan 2022 03:59:34 +0000 (+1030) Subject: PR28826 x86_64 ld segfaults building xen X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07c9f243b3a12cc6749bc02ee7b165859979348b;p=binutils-gdb.git PR28826 x86_64 ld segfaults building xen 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;