diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-06-22 14:07:40 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-06-22 14:07:40 +0000 |
commit | 310b5aa239bd007ca01fdf11a325ce615d832ede (patch) | |
tree | 3e41f262235515e4fbbcc075d567264bfed9b456 /gas/config/tc-ns32k.c | |
parent | 2f5116e25da93ec635230fb22276aa94bf52f5bb (diff) | |
download | fsf-binutils-gdb-310b5aa239bd007ca01fdf11a325ce615d832ede.zip fsf-binutils-gdb-310b5aa239bd007ca01fdf11a325ce615d832ede.tar.gz fsf-binutils-gdb-310b5aa239bd007ca01fdf11a325ce615d832ede.tar.bz2 |
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-ns32k.c')
-rw-r--r-- | gas/config/tc-ns32k.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gas/config/tc-ns32k.c b/gas/config/tc-ns32k.c index 42dc528..6457aea 100644 --- a/gas/config/tc-ns32k.c +++ b/gas/config/tc-ns32k.c @@ -1,5 +1,6 @@ /* ns32k.c -- Assemble on the National Semiconductor 32k series - Copyright (C) 1987, 92, 93, 94, 95, 96, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1987, 92, 93, 94, 95, 96, 97, 98, 1999 + Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -2264,7 +2265,8 @@ tc_gen_reloc (section, fixp) code = reloc(fixp->fx_size, fixp->fx_pcrel, fix_im_disp(fixp)); rel = (arelent *) xmalloc (sizeof (arelent)); - rel->sym_ptr_ptr = &fixp->fx_addsy->bsym; + rel->sym_ptr_ptr = (asymbol **) xmalloc (sizeof (asymbol *)); + *rel->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy); rel->address = fixp->fx_frag->fr_address + fixp->fx_where; if (fixp->fx_pcrel) rel->addend = fixp->fx_addnumber; |