PR26526, 5014c2d22b2 breaks compiling the Linux kernel for ARM

PR 26526
	* symbols.c (local_symbol_convert): Clear out xtra.
This commit is contained in:
Alan Modra
2020-08-24 13:06:46 +09:30
parent d04aee0f41
commit 85d14aaeb7
2 changed files with 7 additions and 1 deletions

View 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.

View 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;