gas: ensure XCOFF DWARF subsection are initialized to 0
authorClément Chigot <clement.chigot@atos.net>
Thu, 29 Jul 2021 11:14:47 +0000 (13:14 +0200)
committerClément Chigot <clement.chigot@atos.net>
Fri, 30 Jul 2021 06:38:49 +0000 (08:38 +0200)
commitf681e5867de63f1c8ca692023cf86e4c884fdae7
tree4718db86956b5ef8952713bad040bc9cbed00f3d
parent8ba4f8f6c2586f873422ffcf002bbb5d78c4e0b6
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.
gas/config/tc-ppc.c