projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avr: replace sentinal with iteration from 0 to ARRAY_SIZE
[deliverable/binutils-gdb.git]
/
gas
/
config
/
tc-tilegx.c
diff --git
a/gas/config/tc-tilegx.c
b/gas/config/tc-tilegx.c
index bd4293942e50fb003aebb5f779bec8a101a17aeb..aca7f5630678bcd45a736b1828f68a656fcf53ad 100644
(file)
--- a/
gas/config/tc-tilegx.c
+++ b/
gas/config/tc-tilegx.c
@@
-1735,8
+1735,8
@@
tc_gen_reloc (asection *sec ATTRIBUTE_UNUSED, fixS *fixp)
{
arelent *reloc;
{
arelent *reloc;
- reloc =
(arelent *) xmalloc (sizeof (arelent)
);
- reloc->sym_ptr_ptr =
(asymbol **) xmalloc (sizeof (asymbol *)
);
+ reloc =
XNEW (arelent
);
+ reloc->sym_ptr_ptr =
XNEW (asymbol *
);
*reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
reloc->address = fixp->fx_frag->fr_address + fixp->fx_where;
*reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
reloc->address = fixp->fx_frag->fr_address + fixp->fx_where;
This page took
0.025296 seconds
and
4
git commands to generate.