[PATCH] gas: ensure XCOFF DWARF subsection are initialized to 0

Alan Modra amodra@gmail.com
Fri Jul 30 03:43:49 GMT 2021


On Thu, Jul 29, 2021 at 12:43:22PM +0000, CHIGOT, CLEMENT via Binutils wrote:
> 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.

OK.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list