summaryrefslogtreecommitdiff
path: root/gas/config/tc-arc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2004-10-01 08:08:54 +0000
committerAlan Modra <amodra@bigpond.net.au>2004-10-01 08:08:54 +0000
commitd5d3b56c3628ff377eff0e34685296d300731fdb (patch)
tree1520474e89836e0c9e314e29e806d8962b6bd88a /gas/config/tc-arc.c
parent8ffc8dedb3510254eb35a3ab2b1dc5dd4e352c74 (diff)
downloadbinutils-redhat-d5d3b56c3628ff377eff0e34685296d300731fdb.tar.gz
* config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
asymbol *, instead use symbol_get_bfdsym.
Diffstat (limited to 'gas/config/tc-arc.c')
-rw-r--r--gas/config/tc-arc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
index be1e93ccf2..4f17526da0 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 1994, 1995, 1997, 1999, 2000, 2001, 2002
+ Copyright 1994, 1995, 1997, 1999, 2000, 2001, 2002, 2003, 2004
Free Software Foundation, Inc.
Contributed by Doug Evans (dje@cygnus.com).
@@ -1978,8 +1978,9 @@ tc_gen_reloc (section, fixP)
arelent *reloc;
reloc = (arelent *) xmalloc (sizeof (arelent));
+ reloc->sym_ptr_ptr = (asymbol **) xmalloc (sizeof (asymbol *));
- reloc->sym_ptr_ptr = &fixP->fx_addsy->bsym;
+ *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)