Fix seg fault by replacing symbol_get_frag() with fscan->fx_frag.
authorNick Clifton <nickc@redhat.com>
Tue, 3 Jul 2001 15:22:19 +0000 (15:22 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 3 Jul 2001 15:22:19 +0000 (15:22 +0000)
gas/ChangeLog
gas/config/tc-sh.c

index 2e69a81682d5b43456cdbee251a724adfc5b4559..a1731aae356a39f4dcd800374638de9fd8bdd14e 100644 (file)
@@ -1,5 +1,8 @@
 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
 
+       * 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
index 5e7b23a4b992e7086ddfd78c5cd5c93c3035d5e2..a1cb874743d4a0d35b901c7835c9e688c4a74758 100644 (file)
@@ -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);
     }
 }
This page took 0.030092 seconds and 4 git commands to generate.