* config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
authorStephane Carrez <stcarrez@nerim.fr>
Tue, 13 Aug 2002 22:20:50 +0000 (22:20 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Tue, 13 Aug 2002 22:20:50 +0000 (22:20 +0000)
commite371935fea357fda4aff68fadadf3f7ecbb9672a
tree73b47ad5c538d41fc78c51effe249c6794fa1e37
parent3c1499adb353ea2d7312cbd78e109dee250d2436
* config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
(TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
according to the reloc.
(tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
(TC_FORCE_RELOCATION): Define.
(tc_m68hc11_force_relocation): Declare.

* config/tc-m68hc11.c (md_pseudo_table): Add relax command.
(s_m68hc11_relax): New function for relax group.
(build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
beginning of jump instruction.
(md_pcrel_from): Rename from md_pcrel_from_section and fix
address computation.
(tc-gen_reloc): Update.
(md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
PC-relative fixup.
(tc_m68hc11_force_relocation): New function, handle new relocs.
(tc_m68hc11_fix_adjustable): New to make sure there are enough
reloc for the linker relax pass.
(md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
and VTABLE relocs.
gas/ChangeLog
gas/config/tc-m68hc11.c
gas/config/tc-m68hc11.h