]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* ld-mips-elf/jalx-2.ld: Include .rel.plt in output, give .plt a
authorMaciej W. Rozycki <macro@linux-mips.org>
Mon, 18 Feb 2013 23:35:17 +0000 (23:35 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Mon, 18 Feb 2013 23:35:17 +0000 (23:35 +0000)
mapping.
* ld-mips-elf/jalx-2.dd: Adjust disassembly accordingly.

ld/testsuite/ChangeLog
ld/testsuite/ld-mips-elf/jalx-2.dd
ld/testsuite/ld-mips-elf/jalx-2.ld

index 660b7cb97da3c112b4f2f37120fbc529c1b059fc..a8e6c2c997c6484919e978b523dee0704b91ddd1 100644 (file)
@@ -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.
index c08d9548ce938da25b652e466456005eb1aeda89..abbae8bb9bf3fef0d2092e172d15c197ef21f745 100644 (file)
@@ -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
index 1c5562b7aa0230c0f8942a581323cb723c52f778..5cf12d052de9b64e831f33ef08d9f14cf0491d6b 100644 (file)
@@ -5,4 +5,6 @@ _start_text = _start_text_phys;
 SECTIONS
 {
   .text _start_text : AT (ADDR (.text)) { *(.text) }
+  .plt : { *(.plt) }
+  .rel.plt : { *(.rel.plt) }
 }