From 07c9f243b3a12cc6749bc02ee7b165859979348b Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 28 Jan 2022 14:29:34 +1030 Subject: [PATCH] PR28826 x86_64 ld segfaults building xen Fallout from commit e86fc4a5bc37 PR 28826 * coffgen.c (coff_write_alien_symbol): Init dummy to zeros. --- bfd/coffgen.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2