projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ba4f8f
)
gas: ensure XCOFF DWARF subsection are initialized to 0
author
Clément Chigot
<clement.chigot@atos.net>
Thu, 29 Jul 2021 11:14:47 +0000
(13:14 +0200)
committer
Clément Chigot
<clement.chigot@atos.net>
Fri, 30 Jul 2021 06:38:49 +0000
(08:38 +0200)
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
patch
|
blob
|
history
diff --git
a/gas/config/tc-ppc.c
b/gas/config/tc-ppc.c
index 8c3b0a8e7ccbc19c4a730876fb720b0d1cd0dead..1327eabf98d8bc4b80460ca9641f77addc5f66a6 100644
(file)
--- 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 = X
C
NEW (struct dw_subsection);
if (opt_label == NULL)
{