diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2013-02-18 23:35:17 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2013-02-18 23:35:17 +0000 |
commit | 273e4eecfe35a98368bd54444070d1b3faae1772 (patch) | |
tree | b3c519a1628bd66e0583669db2ee3625b2923991 /ld/testsuite/ld-mips-elf | |
parent | 8a75745d3114db2057e6f9b94a74939ac4768419 (diff) | |
download | binutils-gdb-273e4eecfe35a98368bd54444070d1b3faae1772.tar.gz |
* ld-mips-elf/jalx-2.ld: Include .rel.plt in output, give .plt a
mapping.
* ld-mips-elf/jalx-2.dd: Adjust disassembly accordingly.
Diffstat (limited to 'ld/testsuite/ld-mips-elf')
-rw-r--r-- | ld/testsuite/ld-mips-elf/jalx-2.dd | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/jalx-2.ld | 2 |
2 files changed, 5 insertions, 1 deletions
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 <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 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) } } |