aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2003-12-06 13:52:23 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2003-12-06 13:52:23 +0000
commit0a6ace1e0e838a2a1abb2989c4f449626dec479a (patch)
treeb8760175fb16df52dbfa29b081cca64ff091f270 /gas/config
parentb76033d90479fc0835bd3c04b5384cb9c2c746ae (diff)
downloadgdb-0a6ace1e0e838a2a1abb2989c4f449626dec479a.zip
gdb-0a6ace1e0e838a2a1abb2989c4f449626dec479a.tar.gz
gdb-0a6ace1e0e838a2a1abb2989c4f449626dec479a.tar.bz2
gas/
* config/tc-mips.c (macro): Switch misordered call to frag_grow() and setting of tc_fr_offset. gas/testsuite/ * gas/mips/elf-rel16.[sd]: New test. * gas/mips/mips.exp: Run it. * gas/mips/elf-rel-xgot-n32.d: Fix addends for "lw $5,dl1+34($5)". * gas/mips/elf-rel-xgot-n64.d: Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 1afd8bf..d60e75f 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -6348,13 +6348,13 @@ macro (struct mips_cl_insn *ip)
lw $tempreg,<sym>($gp) (BFD_RELOC_MIPS_GOT_PAGE)
<op> $treg,<sym>($tempreg) (BFD_RELOC_MIPS_GOT_OFST) */
assert (offset_expr.X_op == O_symbol);
+ frag_grow (36);
frag_now->tc_frag_data.tc_fr_offset =
expr1.X_add_number = offset_expr.X_add_number;
offset_expr.X_add_number = 0;
if (expr1.X_add_number < -0x8000
|| expr1.X_add_number >= 0x8000)
as_bad (_("PIC code offset overflow (max 16 signed bits)"));
- frag_grow (36);
macro_build (NULL, &icnt, &offset_expr, "lui", "t,u", tempreg,
BFD_RELOC_MIPS_GOT_HI16);
macro_build (NULL, &icnt, NULL, ADDRESS_ADD_INSN, "d,v,t",