* config/tc-mips.h (DIFF_EXPR_OK): Define.
authorIan Lance Taylor <ian@airs.com>
Thu, 14 Apr 1994 17:39:55 +0000 (17:39 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 14 Apr 1994 17:39:55 +0000 (17:39 +0000)
commitecd4ca1cef7ff3c562580438c6bff6b03d92b5d5
treed1d32df425d2da356d831f367cf62850fce2f376
parent4f996613fabd8a4445f7ed4134fa764294069951
* config/tc-mips.h (DIFF_EXPR_OK): Define.
* config/tc-mips.c (macro_build): Permit BFD_RELOC_PCREL_LO16 for
certain cases of 'i', 'j' and 'o'.  Change 'u' to take an
argument, the reloc type.
(load_register): Pass reloc type to macro_build for 'u'.
(macro): Likewise.  For M_LA_AB permit a difference expression
when generating embedded PIC code between an arbitrary symbol and
a symbol in the .text section.
(mips_force_relocation): Force BFD_RELOC_PCREL_HI16_S and
BFD_RELOC_PCREL_LO16 to be emitted.
(md_apply_fix): Check that most relocs are not PC relative.
Handle BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
(tc_gen_reloc): Change #error to as_fatal.  Handle
BFD_RELOC_PCREL_LO16 and BFD_RELOC_PCREL_HI16_S.
gas/config/tc-mips.c