From: Nick Clifton Date: Tue, 3 Jul 2001 15:22:19 +0000 (+0000) Subject: Fix seg fault by replacing symbol_get_frag() with fscan->fx_frag. X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7bcad3e5059e5b843e76ed410bfa842286c850f3;p=deliverable%2Fbinutils-gdb.git Fix seg fault by replacing symbol_get_frag() with fscan->fx_frag. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 2e69a81682..a1731aae35 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ 2001-07-03 Nick Clifton + * config/tc-sh.c (sh_frob_section): Replace symbol_get_frag() with + fscan->fx_frag. + * write.c (TC_FINALIZE_SYMS_BEFORE_SIZE_SEG): Default to 1. (write_object_file): Set finalize_syms to TC_FINALIZE_SYMS_BEFORE_SIZE_SEG just before size_segs is diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index 5e7b23a4b9..a1cb874743 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); } }