aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2004-01-12 09:30:49 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2004-01-12 09:30:49 +0000
commitcc3d92a51a68cbf2af232c598821e1b40630be77 (patch)
tree7c97bdf051030849d598d8c3dbb4bf07ef0a6160 /gas/config
parent818a27acd60601744a6bc7ba516376ee7ef8a938 (diff)
downloadgdb-cc3d92a51a68cbf2af232c598821e1b40630be77.zip
gdb-cc3d92a51a68cbf2af232c598821e1b40630be77.tar.gz
gdb-cc3d92a51a68cbf2af232c598821e1b40630be77.tar.bz2
gas/
* config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR reloc, reserve space for the delay slot as well as the jalr itself. gas/testsuite/ * gas/mips/elf-rel18.[sd]: New test. * gas/mips/mips.exp: Run it.
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 da0ea76..fcf0a79 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -3169,7 +3169,7 @@ macro_build_jalr (int icnt, expressionS *ep)
if (HAVE_NEWABI)
{
- frag_grow (4);
+ frag_grow (8);
f = frag_more (0);
}
macro_build (NULL, &icnt, NULL, "jalr", "d,s", RA, PIC_CALL_REG);