diff options
author | Clément Chigot <clement.chigot@atos.net> | 2021-07-29 13:14:47 +0200 |
---|---|---|
committer | Clément Chigot <clement.chigot@atos.net> | 2021-07-30 08:38:49 +0200 |
commit | f681e5867de63f1c8ca692023cf86e4c884fdae7 (patch) | |
tree | 4718db86956b5ef8952713bad040bc9cbed00f3d /gas | |
parent | 8ba4f8f6c2586f873422ffcf002bbb5d78c4e0b6 (diff) | |
download | gdb-f681e5867de63f1c8ca692023cf86e4c884fdae7.zip gdb-f681e5867de63f1c8ca692023cf86e4c884fdae7.tar.gz gdb-f681e5867de63f1c8ca692023cf86e4c884fdae7.tar.bz2 |
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.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/tc-ppc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 8c3b0a8..1327eab 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -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) { |