OSDN Git Service

* 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)
commitc9b36d4ee1c732ffdfc1bd2b691deba30c46885a
treeeae09c7b36815d31244fa33b552136cd4ce37134
parent51e39d40f80a702f223bafdd4a2ec7df64e59fb0
* 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