summaryrefslogtreecommitdiff
path: root/gas/config/tc-arc.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-06-22 14:07:40 +0000
committerIan Lance Taylor <ian@airs.com>1999-06-22 14:07:40 +0000
commit9aa9d11649b9fe786ff8572da87c72d981580f06 (patch)
treed4977cc0e8e71f974f97c183d83ef806cecc23c8 /gas/config/tc-arc.c
parentfc9e6d6bbd20f7c4802310525cd74be54fd4df67 (diff)
downloadbinutils-redhat-9aa9d11649b9fe786ff8572da87c72d981580f06.tar.gz
1999-06-22 Jonathan Larmour <jlarmour@cygnus.co.uk>
* config/tc-arc.c (tc_gen_reloc): Use symbol_get_bfdsym to get at the symbol, rather than accessing the bsym member. * config/tc-d10v.c (tc_gen_reloc): Likewise. * config/tc-d30v.c (tc_gen_reloc): Likewise. * config/tc-mcore.c (tc_gen_reloc): Likewise. * config/tc-mn10200.c (tc_gen_reloc): Likewise. * config/tc-mn10300.c (tc_gen_reloc): Likewise. * config/tc-ns32k.c (tc_gen_reloc): Likewise. * config/tc-tic30.c (tc_gen_reloc): Likewise. * config/tc-v850.c (tc_gen_reloc): Likewise.
Diffstat (limited to 'gas/config/tc-arc.c')
-rw-r--r--gas/config/tc-arc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
index c07c2d791a..55543da336 100644
--- a/gas/config/tc-arc.c
+++ b/gas/config/tc-arc.c
@@ -1,5 +1,5 @@
/* tc-arc.c -- Assembler for the ARC
- Copyright (C) 1994, 1995, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1994, 1995, 1997, 1998, 1999 Free Software Foundation, Inc.
Contributed by Doug Evans (dje@cygnus.com).
This file is part of GAS, the GNU Assembler.
@@ -15,8 +15,9 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with GAS; see the file COPYING. If not, write to
- the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ along with GAS; see the file COPYING. If not, write to the Free
+ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA. */
#include <stdio.h>
#include <ctype.h>
@@ -1445,7 +1446,8 @@ tc_gen_reloc (section, fixP)
reloc = (arelent *) xmalloc (sizeof (arelent));
- 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->howto = bfd_reloc_type_lookup (stdoutput, fixP->fx_r_type);
if (reloc->howto == (reloc_howto_type *) NULL)