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.
This commit is contained in:
parent
818a27acd6
commit
cc3d92a51a
6 changed files with 28 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-01-12 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2004-01-09 Paul Brook <paul@codesourcery.com>
|
||||
|
||||
* config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2004-01-12 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* gas/mips/elf-rel18.[sd]: New test.
|
||||
* gas/mips/mips.exp: Run it.
|
||||
|
||||
2004-01-09 Paul Brook <paul@codesourcery.com>
|
||||
|
||||
* gas/arm/vfp2.s, gas/arm/vfp2.d: New test.
|
||||
|
|
9
gas/testsuite/gas/mips/elf-rel18.d
Normal file
9
gas/testsuite/gas/mips/elf-rel18.d
Normal file
|
@ -0,0 +1,9 @@
|
|||
#readelf: --relocs
|
||||
#as: -mabi=n32 -KPIC
|
||||
|
||||
Relocation section '\.rela\.text' at offset .* contains 4 entries:
|
||||
Offset Info Type Sym.Value Sym. Name \+ Addend
|
||||
00000ed0 .* R_MIPS_CALL16 00000000 foo \+ 0
|
||||
00000ed4 .* R_MIPS_JALR 00000000 foo \+ 0
|
||||
00000edc .* R_MIPS_CALL16 00000000 foo \+ 0
|
||||
00000ee0 .* R_MIPS_JALR 00000000 foo \+ 0
|
5
gas/testsuite/gas/mips/elf-rel18.s
Normal file
5
gas/testsuite/gas/mips/elf-rel18.s
Normal file
|
@ -0,0 +1,5 @@
|
|||
.rept 0x3b4
|
||||
nop
|
||||
.endr
|
||||
jal foo
|
||||
jal foo
|
|
@ -671,6 +671,9 @@ if { [istarget mips*-*-*] } then {
|
|||
run_dump_test "elf-rel-xgot-n64"
|
||||
}
|
||||
run_dump_test "elf-rel17"
|
||||
if $has_newabi {
|
||||
run_dump_test "elf-rel18"
|
||||
}
|
||||
|
||||
run_dump_test "${tmips}${el}empic"
|
||||
run_dump_test "empic2"
|
||||
|
|
Loading…
Add table
Reference in a new issue