* tc_mips.h (MAX_GPREL_OFFSET): Change it to the maximum allowed

value, not the word beyond maximum.
	* tc_mips.c (macro_build_lui): Code cleanup.
	(macro): Reflect change to MAX_GPREL_OFFSET.
	(mips_ip): Check explicitly against S_EX_NONE.
	(my_get_SmallExpression): parse for %gp_rel, not %gprel.
	(md_apply_fix): Code cleanup.
This commit is contained in:
Thiemo Seufer
2001-08-26 10:42:12 +00:00
parent b92b9cfe73
commit e7d556dfef
3 changed files with 24 additions and 17 deletions

View File

@ -47,7 +47,7 @@ struct expressionS;
/* Maximum symbol offset that can be encoded in a BFD_RELOC_MIPS_GPREL
relocation: */
#define MAX_GPREL_OFFSET (0x7FF4)
#define MAX_GPREL_OFFSET (0x7FF0)
#define md_relax_frag(segment, fragp, stretch) mips_relax_frag(fragp, stretch)
extern int mips_relax_frag PARAMS ((struct frag *, long));