diff options
author | Alan Modra <amodra@gmail.com> | 2004-10-01 08:08:54 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2004-10-01 08:08:54 +0000 |
commit | 65555e641ff0def45c468ee53760d06d8e443573 (patch) | |
tree | 71520c22a1960f10d1c1312d92d41a80a19bbdff /gas | |
parent | 9b32d5267e5b0e0eb9100353a7b555c06a817466 (diff) | |
download | gdb-65555e641ff0def45c468ee53760d06d8e443573.zip gdb-65555e641ff0def45c468ee53760d06d8e443573.tar.gz gdb-65555e641ff0def45c468ee53760d06d8e443573.tar.bz2 |
* 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')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-arc.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index d614571..c11bbaf 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2004-10-01 Ravi Ramaseshan <ravi.ramaseshan@codito.com> + + * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an + asymbol *, instead use symbol_get_bfdsym. + 2004-09-30 Linus Nielsen Feltzing <linus@haxx.se> * config/tc-m68k.c (select_control_regs): Add mcf5249. diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c index be1e93c..4f17526 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) |