PR26526, 5014c2d22b2 breaks compiling the Linux kernel for ARM
authorAlan Modra <amodra@gmail.com>
Mon, 24 Aug 2020 03:36:46 +0000 (13:06 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 24 Aug 2020 03:39:53 +0000 (13:09 +0930)
PR 26526
* symbols.c (local_symbol_convert): Clear out xtra.

gas/ChangeLog
gas/symbols.c

index 65b662dd142b30a1aa590c9ab4250a36ee3d7578..1aa2792851da7632b91f5e67258aab492f6eb79a 100644 (file)
@@ -1,3 +1,8 @@
+2020-08-24  Alan Modra  <amodra@gmail.com>
+
+       PR 26526
+       * symbols.c (local_symbol_convert): Clear out xtra.
+
 2020-08-21  Cooper Qu  <cooper.qu@linux.alibaba.com>
 
        * config/tc-csky.c (CSKY_ISA_803R2): New.
index 50b23d6ded66cfcf11f9d4d3c5747f9752ee4d73..04017b6744f3c8d901967ab13fa29eeaa431e5b4 100644 (file)
@@ -382,7 +382,8 @@ local_symbol_convert (void *sym)
 
   ++local_symbol_conversion_count;
 
-  xtra = (struct xsymbol *) obstack_alloc (&notes, sizeof *xtra);
+  xtra = (struct xsymbol *) obstack_alloc (&notes, sizeof (*xtra));
+  memset (xtra, 0, sizeof (*xtra));
   val = ent->lsy.value;
   ent->sy.x = xtra;