From 080e41e66bf6ac00e46d138f23864f12246efc16 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 3 Jun 1999 12:51:21 +0000 Subject: * cgen.c: Update for symbol handling changes. --- gas/ChangeLog | 3 ++- gas/cgen.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index e8e547c..3047810 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,6 +1,7 @@ 1999-06-03 Ian Lance Taylor - * config/tc-m32r.c: Update for symbol handling changes. + * cgen.c: Update for symbol handling changes. + * config/tc-m32r.c: Likewise. * config/tc-hppa.h: Update for symbol handling changes. * config/tc-hppa.c: Likewise. diff --git a/gas/cgen.c b/gas/cgen.c index 3d2330e..e15e1b6 100644 --- a/gas/cgen.c +++ b/gas/cgen.c @@ -649,7 +649,8 @@ gas_cgen_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); /* Use fx_offset for these cases */ if ( fixP->fx_r_type == BFD_RELOC_VTABLE_ENTRY -- cgit v1.1