mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-26 13:30:30 +00:00
Fix seg fault by replacing symbol_get_frag() with fscan->fx_frag.
This commit is contained in:
parent
7014bc3115
commit
7bcad3e505
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user