mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 18:44:20 +08:00
* tc_mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
(macro): Reflect change to MAX_GPREL_OFFSET.
This commit is contained in:
parent
2e67030cdb
commit
7283eb8605
@ -1,3 +1,8 @@
|
||||
2001-08-27 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
||||
|
||||
* tc_mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
|
||||
(macro): Reflect change to MAX_GPREL_OFFSET.
|
||||
|
||||
2001-08-27 Torbjorn Granlund <tege@swox.com>
|
||||
Staffan Ulfberg <staffanu@swox.se>
|
||||
Linus Nordberg <linus@swox.se>
|
||||
|
@ -3330,7 +3330,7 @@ load_address (counter, reg, ep)
|
||||
lui $reg,<sym> (BFD_RELOC_HI16_S)
|
||||
addiu $reg,$reg,<sym> (BFD_RELOC_LO16)
|
||||
If we have an addend, we always use the latter form. */
|
||||
if ((valueT) ep->X_add_number >= MAX_GPREL_OFFSET
|
||||
if ((valueT) ep->X_add_number > MAX_GPREL_OFFSET
|
||||
|| nopic_need_relax (ep->X_add_symbol, 1))
|
||||
p = NULL;
|
||||
else
|
||||
@ -4226,7 +4226,7 @@ macro (ip)
|
||||
addiu $tempreg,$tempreg,<sym> (BFD_RELOC_LO16)
|
||||
If we have a constant, we need two instructions anyhow,
|
||||
so we may as well always use the latter form. */
|
||||
if ((valueT) offset_expr.X_add_number >= MAX_GPREL_OFFSET
|
||||
if ((valueT) offset_expr.X_add_number > MAX_GPREL_OFFSET
|
||||
|| nopic_need_relax (offset_expr.X_add_symbol, 1))
|
||||
p = NULL;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user