old-cross-binutils/ld/testsuite/ld-mips-elf/jalr3.dd
Maciej W. Rozycki d6101ac200 gas/
* write.c (resolve_reloc_expr_symbols): On REL targets don't
	convert relocs who have no relocatable field either.  Rephrase
	the conditional so that the PC-relative check is only applied
	for REL targets.

	gas/testsuite/
	* gas/mips/jalr3.d: New test.
	* gas/mips/jalr3-n32.d: New test.
	* gas/mips/jalr3-n64.d: New test.
	* gas/mips/jalr3.s: New test source.
	* gas/mips/mips.exp: Run the new tests.

	ld/testsuite/
	* ld-mips-elf/jalr3.dd: New test.
	* ld-mips-elf/jalr3.ld: New test linker script.
	* ld-mips-elf/mips-elf.exp: Run the new test.
2013-05-29 16:22:14 +00:00

14 lines
244 B
Text

.*: +file format .*mips.*
Disassembly of section \.text:
0+000000 <foo>:
0: 04110003 bal 10 <\$bar>
4: 00000000 nop
8: 10000001 b 10 <\$bar>
c: 00000000 nop
0+000010 <\$bar>:
10: 03e00008 jr ra
14: 00000000 nop
\.\.\.