summaryrefslogtreecommitdiff
path: root/gas/cgen.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-06-03 12:51:21 +0000
committerIan Lance Taylor <ian@airs.com>1999-06-03 12:51:21 +0000
commit3a43d33b251afd475d45aa3d01b8c9a41e957b62 (patch)
treec15506f9e1443a395abf72f66002609c3a696072 /gas/cgen.c
parent4a50965e3da435015059f9ae531c31e5a0d94052 (diff)
downloadbinutils-redhat-3a43d33b251afd475d45aa3d01b8c9a41e957b62.tar.gz
* cgen.c: Update for symbol handling changes.
Diffstat (limited to 'gas/cgen.c')
-rw-r--r--gas/cgen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/cgen.c b/gas/cgen.c
index 3d2330e05f..e15e1b6534 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