aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-moxie.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-moxie.c')
-rw-r--r--gas/config/tc-moxie.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gas/config/tc-moxie.c b/gas/config/tc-moxie.c
index 24c9aec..9201cb5 100644
--- a/gas/config/tc-moxie.c
+++ b/gas/config/tc-moxie.c
@@ -771,9 +771,8 @@ tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixP)
return 0;
}
- relP = xmalloc (sizeof (arelent));
- gas_assert (relP != 0);
- relP->sym_ptr_ptr = xmalloc (sizeof (asymbol *));
+ relP = XNEW (arelent);
+ relP->sym_ptr_ptr = XNEW (asymbol *);
*relP->sym_ptr_ptr = symbol_get_bfdsym (fixP->fx_addsy);
relP->address = fixP->fx_frag->fr_address + fixP->fx_where;