Purge symtab of make_cleanup_func.
[deliverable/binutils-gdb.git] / gas / cgen.c
index 3d2330e05fb17fcd445a33bd2054a78d31bf7c18..e15e1b65346b77707a916b4af9e28a5a1e021a7a 100644 (file)
@@ -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
This page took 0.025869 seconds and 4 git commands to generate.