aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-mips-elf/jalx-2.dd4
-rw-r--r--ld/testsuite/ld-mips-elf/jalx-2.ld2
3 files changed, 11 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 660b7cb..a8e6c2c 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * ld-mips-elf/jalx-2.ld: Include .rel.plt in output, give .plt a
+ mapping.
+ * ld-mips-elf/jalx-2.dd: Adjust disassembly accordingly.
+
2013-02-18 Alan Modra <amodra@gmail.com>
* ld-plugin/lto.exp (Build pr15146b.so) Add -Wl,--no-as-needed.
diff --git a/ld/testsuite/ld-mips-elf/jalx-2.dd b/ld/testsuite/ld-mips-elf/jalx-2.dd
index c08d954..abbae8b 100644
--- a/ld/testsuite/ld-mips-elf/jalx-2.dd
+++ b/ld/testsuite/ld-mips-elf/jalx-2.dd
@@ -29,7 +29,7 @@ Disassembly of section \.text:
4400038: f8be 0024 sw a1,36\(s8\)
440003c: 41a2 0440 lui v0,0x440
4400040: 3082 02a0 addiu a0,v0,672
- 4400044: f110 0028 jalx 44000a0 <_PROCEDURE_LINKAGE_TABLE_\+0x20>
+ 4400044: f110 0028 jalx 44000a0 <printf@plt>
4400048: 0000 0000 nop
440004c: f620 0010 jal 4400020 <internal_function>
4400050: 0000 0000 nop
@@ -52,6 +52,8 @@ Disassembly of section \.plt:
4400094: 0018c082 srl t8,t8,0x2
4400098: 0320f809 jalr t9
440009c: 2718fffe addiu t8,t8,-2
+
+044000a0 <printf@plt>:
44000a0: 3c0f0440 lui t7,0x440
44000a4: 8df900e0 lw t9,224\(t7\)
44000a8: 03200008 jr t9
diff --git a/ld/testsuite/ld-mips-elf/jalx-2.ld b/ld/testsuite/ld-mips-elf/jalx-2.ld
index 1c5562b..5cf12d0 100644
--- a/ld/testsuite/ld-mips-elf/jalx-2.ld
+++ b/ld/testsuite/ld-mips-elf/jalx-2.ld
@@ -5,4 +5,6 @@ _start_text = _start_text_phys;
SECTIONS
{
.text _start_text : AT (ADDR (.text)) { *(.text) }
+ .plt : { *(.plt) }
+ .rel.plt : { *(.rel.plt) }
}