* config/tc-sh.c (md_pseudo_table): Add "uses".
authorIan Lance Taylor <ian@airs.com>
Mon, 24 Jul 1995 18:18:39 +0000 (18:18 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 24 Jul 1995 18:18:39 +0000 (18:18 +0000)
commita91c6b08851fab0519eefdccded4580c702d7bba
tree2cf313750de1fd254a66a8e64a45dc58f9d26cc0
parenteae0538f9c455c9f85699f489fa114b5103ae830
* config/tc-sh.c (md_pseudo_table): Add "uses".
(s_uses): New static function.
(sh_coff_frob_file): New function.
(md_convert_frag): Call subseg_change before calling fix_new.
(sh_handle_align): New function.
(SWITCH_TABLE): Define.
(sh_force_relocation): New function.
(md_apply_fix): Handle R_SH_USES, R_SH_COUNT and R_SH_ALIGN.
(sh_coff_reloc_mangle): Likewise.  Also handle switch table
entries.
* config/tc-sh.h (HANDLE_ALIGN): Define.
(sh_handle_align): Declare.
(TC_FORCE_RELOCATION): Define.
(sh_force_relocation): Declare.
(TC_COUNT_RELOC): Simplify; rely on TC_FORCE_RELOCATION instead.
(tc_frob_file): Define.
(sh_coff_frob_file): Declare.
* config/obj-coff.c (write_object_file): Call tc_frob_file if it
is defined.
(fixup_mdeps): Call HANDLE_ALIGN if it is defined.
(TC_FORCE_RELOCATION): Define if not defined.
(fixup_segment): Use TC_FORCE_RELOCATION to decide whether to
clear the symbol fields of fixP.
gas/ChangeLog
gas/config/obj-coff.c