* config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
worked sometimes by accident. Fix copy&paste comment.
This commit is contained in:
parent
195325d290
commit
8586fc660d
2 changed files with 13 additions and 11 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
||||||
|
|
||||||
|
* config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
|
||||||
|
worked sometimes by accident. Fix copy&paste comment.
|
||||||
|
|
||||||
2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
||||||
|
|
||||||
* config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
|
* config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
|
||||||
|
|
|
@ -11510,7 +11510,7 @@ s_cpsetup (ignore)
|
||||||
int icnt = 0;
|
int icnt = 0;
|
||||||
char *sym;
|
char *sym;
|
||||||
|
|
||||||
/* If we are not generating SVR4 PIC code, .cpload is ignored.
|
/* If we are not generating SVR4 PIC code, .cpsetup is ignored.
|
||||||
We also need NewABI support. */
|
We also need NewABI support. */
|
||||||
if (mips_pic != SVR4_PIC || ! HAVE_NEWABI)
|
if (mips_pic != SVR4_PIC || ! HAVE_NEWABI)
|
||||||
{
|
{
|
||||||
|
@ -11567,18 +11567,15 @@ s_cpsetup (ignore)
|
||||||
|
|
||||||
macro_build ((char *) NULL, &icnt, &ex_sym, "lui", "t,u", mips_gp_register,
|
macro_build ((char *) NULL, &icnt, &ex_sym, "lui", "t,u", mips_gp_register,
|
||||||
(int) BFD_RELOC_GPREL16);
|
(int) BFD_RELOC_GPREL16);
|
||||||
fix_new (frag_now, (char *) prev_insn_fixp - 4 - frag_now->fr_literal, 0,
|
fix_new (frag_now, prev_insn_where, 0, NULL, 0, 0, BFD_RELOC_MIPS_SUB);
|
||||||
NULL, 0, 0, BFD_RELOC_MIPS_SUB);
|
fix_new (frag_now, prev_insn_where, 0, NULL, 0, 0, BFD_RELOC_HI16_S);
|
||||||
fix_new (frag_now, (char *) prev_insn_fixp - 4 - frag_now->fr_literal, 0,
|
|
||||||
NULL, 0, 0, BFD_RELOC_HI16_S);
|
|
||||||
macro_build ((char *) NULL, &icnt, &ex_sym, "addiu", "t,r,j",
|
macro_build ((char *) NULL, &icnt, &ex_sym, "addiu", "t,r,j",
|
||||||
mips_gp_register, mips_gp_register, (int) BFD_RELOC_GPREL16);
|
mips_gp_register, mips_gp_register, (int) BFD_RELOC_GPREL16);
|
||||||
fix_new (frag_now, (char *) prev_insn_fixp - 4 - frag_now->fr_literal, 0,
|
fix_new (frag_now, prev_insn_where, 0, NULL, 0, 0, BFD_RELOC_MIPS_SUB);
|
||||||
NULL, 0, 0, BFD_RELOC_MIPS_SUB);
|
fix_new (frag_now, prev_insn_where, 0, NULL, 0, 0, BFD_RELOC_LO16);
|
||||||
fix_new (frag_now, (char *) prev_insn_fixp - 4 - frag_now->fr_literal, 0,
|
macro_build ((char *) NULL, &icnt, (expressionS *) NULL,
|
||||||
NULL, 0, 0, BFD_RELOC_LO16);
|
HAVE_64BIT_ADDRESSES ? "daddu" : "addu", "d,v,t",
|
||||||
macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "daddu",
|
mips_gp_register, mips_gp_register, reg1);
|
||||||
"d,v,t", mips_gp_register, mips_gp_register, reg1);
|
|
||||||
|
|
||||||
demand_empty_rest_of_line ();
|
demand_empty_rest_of_line ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue