PR28826 x86_64 ld segfaults building xen
authorAlan Modra <amodra@gmail.com>
Fri, 28 Jan 2022 03:59:34 +0000 (14:29 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 28 Jan 2022 06:24:31 +0000 (16:54 +1030)
Fallout from commit e86fc4a5bc37

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

bfd/coffgen.c

index 293fce2baf34952efd63479a4eb28f17ad6d1f69..bec1a424831131a4559858745d8dbf5969eaee64 100644 (file)
@@ -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;