From 6d30f5b2dcf2d644300d8ab5ada56cfa22f97bf2 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 17 Jul 2009 09:46:00 +0000 Subject: * elfxx-mips.c (LOAD_INTERLOCKS_P): New define. (_bfd_mips_elf_size_dynamic_sections): For CPUs without load interlocking, the last PLT entry needs a nop in the branch delay slot. (_bfd_mips_elf_finish_dynamic_symbol): For CPUs with load itnerlocking, output the last two PLT entries in reverse order. * ld-mips-elf/pic-and-nonpic-3b.dd, ld-mips-elf/pic-and-nonpic-5b.dd, ld-mips-elf/pic-and-nonpic-6-o32.dd: Updated to use new PLT entries. --- ld/testsuite/ChangeLog | 7 +++++++ ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.dd | 3 +-- ld/testsuite/ld-mips-elf/pic-and-nonpic-5b.dd | 3 +-- ld/testsuite/ld-mips-elf/pic-and-nonpic-6-o32.dd | 7 +++---- 4 files changed, 12 insertions(+), 8 deletions(-) (limited to 'ld') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 78ec4a8..ae03abe 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2009-07-17 Chao-ying Fu + + * ld-mips-elf/pic-and-nonpic-3b.dd: Updated to use new PLT + entries. + * ld-mips-elf/pic-and-nonpic-5b.dd: Likewise. + * ld-mips-elf/pic-and-nonpic-6-o32.dd: Likewise. + 2009-07-16 H.J. Lu * ld-ifunc/ifunc-5r-local-i386.d: New. diff --git a/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.dd b/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.dd index b0dfafc..dffa7f6 100644 --- a/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.dd +++ b/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.dd @@ -22,9 +22,8 @@ Disassembly of section \.plt: 00043040 : .*: 3c0f0008 lui t7,0x8 .*: 8df91008 lw t9,4104\(t7\) -.*: 25f81008 addiu t8,t7,4104 .*: 03200008 jr t9 -.*: 00000000 nop +.*: 25f81008 addiu t8,t7,4104 Disassembly of section \.text: diff --git a/ld/testsuite/ld-mips-elf/pic-and-nonpic-5b.dd b/ld/testsuite/ld-mips-elf/pic-and-nonpic-5b.dd index ff18883..9adfb31 100644 --- a/ld/testsuite/ld-mips-elf/pic-and-nonpic-5b.dd +++ b/ld/testsuite/ld-mips-elf/pic-and-nonpic-5b.dd @@ -16,9 +16,8 @@ Disassembly of section \.plt: 00043060 : .*: 3c0f0008 lui t7,0x8 .*: 8df91008 lw t9,4104\(t7\) -.*: 25f81008 addiu t8,t7,4104 .*: 03200008 jr t9 -.*: 00000000 nop +.*: 25f81008 addiu t8,t7,4104 Disassembly of section .text: diff --git a/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-o32.dd b/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-o32.dd index 731b8ed..77f7623 100644 --- a/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-o32.dd +++ b/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-o32.dd @@ -27,21 +27,20 @@ Disassembly of section \.plt: 00043060 : .*: 3c0f0008 lui t7,0x8 .*: 8df91008 lw t9,4104\(t7\) -.*: 25f81008 addiu t8,t7,4104 .*: 03200008 jr t9 +.*: 25f81008 addiu t8,t7,4104 00043070 : .*: 3c0f0008 lui t7,0x8 .*: 8df9100c lw t9,4108\(t7\) -.*: 25f8100c addiu t8,t7,4108 .*: 03200008 jr t9 +.*: 25f8100c addiu t8,t7,4108 00043080 : .*: 3c0f0008 lui t7,0x8 .*: 8df91010 lw t9,4112\(t7\) -.*: 25f81010 addiu t8,t7,4112 .*: 03200008 jr t9 -.*: 00000000 nop +.*: 25f81010 addiu t8,t7,4112 Disassembly of section \.text: -- cgit v1.1