mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-29 23:10:26 +00:00
* config/tc-mn10300.c (tc_gen_reloc): Don't free
reloc->sym_ptr_ptr if it's not allocated.
This commit is contained in:
parent
5abe4e058f
commit
7dc8f5ceec
@ -1,3 +1,8 @@
|
||||
2001-10-05 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* config/tc-mn10300.c (tc_gen_reloc): Don't free
|
||||
reloc->sym_ptr_ptr if it's not allocated.
|
||||
|
||||
2001-10-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
||||
|
||||
* config/tc-mips.c (prev_insn_reloc_type): Make it an array to hold a
|
||||
|
@ -1779,6 +1779,8 @@ tc_gen_reloc (seg, fixp)
|
||||
|
||||
if (fixp->fx_addsy && fixp->fx_subsy)
|
||||
{
|
||||
reloc->sym_ptr_ptr = NULL;
|
||||
|
||||
/* If we got a difference between two symbols, and the
|
||||
subtracted symbol is in the current section, use a
|
||||
PC-relative relocation. If both symbols are in the same
|
||||
@ -1856,7 +1858,8 @@ tc_gen_reloc (seg, fixp)
|
||||
}
|
||||
}
|
||||
|
||||
free (reloc->sym_ptr_ptr);
|
||||
if (reloc->sym_ptr_ptr)
|
||||
free (reloc->sym_ptr_ptr);
|
||||
free (reloc);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user