gas: ensure XCOFF DWARF subsection are initialized to 0
debug_abbrev doesn't use end_exp to compute its size. However, it must be NULL. Otherwise, ppc_xcoff_end might try to access uninitialized memory. gas/ * config/tc-ppc.c (ppc_dwsect): Use XCNEW instead of XNEW when creating a new subsection.
This commit is contained in:
parent
8ba4f8f6c2
commit
f681e5867d
@ -4723,7 +4723,7 @@ ppc_dwsect (int ignore ATTRIBUTE_UNUSED)
|
||||
else
|
||||
{
|
||||
/* Create a new dw subsection. */
|
||||
subseg = XNEW (struct dw_subsection);
|
||||
subseg = XCNEW (struct dw_subsection);
|
||||
|
||||
if (opt_label == NULL)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user