From 273e4eecfe35a98368bd54444070d1b3faae1772 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Mon, 18 Feb 2013 23:35:17 +0000 Subject: [PATCH] * ld-mips-elf/jalx-2.ld: Include .rel.plt in output, give .plt a mapping. * ld-mips-elf/jalx-2.dd: Adjust disassembly accordingly. --- ld/testsuite/ChangeLog | 6 ++++++ ld/testsuite/ld-mips-elf/jalx-2.dd | 4 +++- ld/testsuite/ld-mips-elf/jalx-2.ld | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 660b7cb97da..a8e6c2c997c 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2013-02-18 Maciej W. Rozycki + + * 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 * 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 c08d9548ce9..abbae8bb9bf 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 4400048: 0000 0000 nop 440004c: f620 0010 jal 4400020 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 : 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 1c5562b7aa0..5cf12d052de 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) } } -- 2.30.2