diff options
Diffstat (limited to 'gas/config/tc-i960.c')
-rw-r--r-- | gas/config/tc-i960.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-i960.c b/gas/config/tc-i960.c index a4e8497..60ae033 100644 --- a/gas/config/tc-i960.c +++ b/gas/config/tc-i960.c @@ -3353,7 +3353,8 @@ tc_gen_reloc (section, fixP) assert (!fixP->fx_pcrel == !reloc->howto->pc_relative); - reloc->sym_ptr_ptr = &fixP->fx_addsy->bsym; + reloc->sym_ptr_ptr = (asymbol **) xmalloc (sizeof (asymbol *)); + *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixP->fx_addsy); reloc->address = fixP->fx_frag->fr_address + fixP->fx_where; reloc->addend = fixP->fx_addnumber; |