From 35d3d567ccaa9db98392c3787e4d5409c13701e8 Mon Sep 17 00:00:00 2001 From: Thiemo Seufer Date: Thu, 20 Jul 2006 16:46:30 +0000 Subject: [ bfd/ChangeLog ] * elf32-mips.c (mips16_jump_reloc): Remove function. (elf_mips16_howto_table_rel): Use _bfd_mips_elf_generic_reloc instead of mips16_jump_reloc. * elf64_mips.c, wlfn32-mips.c (mips16_jump_reloc): Remove function. (elf_mips16_howto_table_rel, elf_mips16_howto_table_rela): Use _bfd_mips_elf_generic_reloc instead of mips16_jump_reloc. [ gas/ChangeLog ] * config/tc-mips.c (mips_fix_adjustable): Handle BFD_RELOC_MIPS16_JMP. (tc_gen_reloc): Handle mips16 jumps to section symbol offsets. [ ld/testsuite/ChangeLog ] * ld-mips-elf/mips16-call-global-1.s, ld-mips-elf/mips16-call-global-2.s, ld-mips-elf/mips16-call-global-3.s, ld-mips-elf/mips16-call-global.d: Test linking of external mips16 jumps. * ld-mips-elf/mips-elf.exp: Run new test. --- ld/testsuite/ld-mips-elf/mips16-call-global.d | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ld/testsuite/ld-mips-elf/mips16-call-global.d (limited to 'ld/testsuite/ld-mips-elf/mips16-call-global.d') diff --git a/ld/testsuite/ld-mips-elf/mips16-call-global.d b/ld/testsuite/ld-mips-elf/mips16-call-global.d new file mode 100644 index 0000000..bd5095e --- /dev/null +++ b/ld/testsuite/ld-mips-elf/mips16-call-global.d @@ -0,0 +1,37 @@ +#as: -mips32r2 +#source: mips16-call-global-1.S mips16-call-global-2.S mips16-call-global-3.S + +.*: file format elf.*mips + +Disassembly of section .text: + +00400090 <__start>: + 400090: 64c3 save 24,ra + 400092: 1a00 002e jal 4000b8 + 400096: 6500 nop + 400098: 1e00 0032 jalx 4000c8 + 40009c: 6500 nop + 40009e: 6443 restore 24,ra + 4000a0: e8a0 jrc ra + 4000a2: 6500 nop + 4000a4: 6500 nop + 4000a6: 6500 nop + 4000a8: 6500 nop + 4000aa: 6500 nop + 4000ac: 6500 nop + 4000ae: 6500 nop + +004000b0 : + 4000b0: e8a0 jrc ra + 4000b2: 6500 nop + 4000b4: 6500 nop + 4000b6: 6500 nop + 4000b8: 6500 nop + 4000ba: 6500 nop + 4000bc: 6500 nop + 4000be: 6500 nop + +004000c0 : + 4000c0: 03e00008 jr ra + 4000c4: 00000000 nop + \.\.\. -- cgit v1.1