aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-01-28 14:29:34 +1030
committerAlan Modra <amodra@gmail.com>2022-01-28 16:54:31 +1030
commit07c9f243b3a12cc6749bc02ee7b165859979348b (patch)
tree5c138d0842a12e4768b755c598012490c6f36070 /bfd
parent085b299b71721e15f5c5c5344dc3e4e4536dadba (diff)
downloadgdb-07c9f243b3a12cc6749bc02ee7b165859979348b.zip
gdb-07c9f243b3a12cc6749bc02ee7b165859979348b.tar.gz
gdb-07c9f243b3a12cc6749bc02ee7b165859979348b.tar.bz2
PR28826 x86_64 ld segfaults building xen
Fallout from commit e86fc4a5bc37 PR 28826 * coffgen.c (coff_write_alien_symbol): Init dummy to zeros.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/coffgen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index 293fce2..bec1a42 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;