aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-07-03 15:22:19 +0000
committerNick Clifton <nickc@redhat.com>2001-07-03 15:22:19 +0000
commit7bcad3e5059e5b843e76ed410bfa842286c850f3 (patch)
tree6cb83861f052337d3b3fbb2a87c4ebd99e3a2321 /gas/config
parent7014bc311517672c2e979c832595e4246c066016 (diff)
downloadgdb-7bcad3e5059e5b843e76ed410bfa842286c850f3.zip
gdb-7bcad3e5059e5b843e76ed410bfa842286c850f3.tar.gz
gdb-7bcad3e5059e5b843e76ed410bfa842286c850f3.tar.bz2
Fix seg fault by replacing symbol_get_frag() with fscan->fx_frag.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-sh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c
index 5e7b23a..a1cb874 100644
--- a/gas/config/tc-sh.c
+++ b/gas/config/tc-sh.c
@@ -2340,8 +2340,8 @@ sh_frob_section (abfd, sec, ignore)
We have already adjusted the value of sym to include the
fragment address, so we undo that adjustment here. */
subseg_change (sec, 0);
- fix_new (symbol_get_frag (sym),
- S_GET_VALUE (sym) - symbol_get_frag (sym)->fr_address,
+ fix_new (fscan->fx_frag,
+ S_GET_VALUE (sym) - fscan->fx_frag->fr_address,
4, &abs_symbol, info.count, 0, BFD_RELOC_SH_COUNT);
}
}