aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-sh64.c
diff options
context:
space:
mode:
authorStephen Clarke <stephen.clarke@earthling.net>2002-10-10 21:45:14 +0000
committerStephen Clarke <stephen.clarke@earthling.net>2002-10-10 21:45:14 +0000
commit0a4ef3f4147e3280839028a7807a33697212cb31 (patch)
tree94012d38abb2c5a9c1da933637d528581954c7d7 /bfd/elf64-sh64.c
parent599917b82b8592664e680ac7fca4260f0160e169 (diff)
downloadfsf-binutils-gdb-0a4ef3f4147e3280839028a7807a33697212cb31.zip
fsf-binutils-gdb-0a4ef3f4147e3280839028a7807a33697212cb31.tar.gz
fsf-binutils-gdb-0a4ef3f4147e3280839028a7807a33697212cb31.tar.bz2
* elf32-sh.c (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
Correct mistake in calculation of address of .got. * elf64-sh64.c (elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le): Likewise.
Diffstat (limited to 'bfd/elf64-sh64.c')
-rw-r--r--bfd/elf64-sh64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf64-sh64.c b/bfd/elf64-sh64.c
index 4fb695f..7a114c6 100644
--- a/bfd/elf64-sh64.c
+++ b/bfd/elf64-sh64.c
@@ -3108,7 +3108,7 @@ static const bfd_byte elf_sh64_pic_plt_entry_be[PLT_ENTRY_SIZE] =
0x6f, 0xf0, 0xff, 0xf0, /* nop */
0x6f, 0xf0, 0xff, 0xf0, /* nop */
0xce, 0x00, 0x01, 0x10, /* movi -GOT_BIAS, r17 */
- 0x00, 0xcb, 0x45, 0x10, /* sub r12, r17, r17 */
+ 0x00, 0xc9, 0x45, 0x10, /* add r12, r17, r17 */
0x8d, 0x10, 0x09, 0x90, /* ld.q r17, 16, r25 */
0x6b, 0xf1, 0x66, 0x00, /* ptabs r25, tr0 */
0x8d, 0x10, 0x05, 0x10, /* ld.q r17, 8, r17 */
@@ -3128,7 +3128,7 @@ static const bfd_byte elf_sh64_pic_plt_entry_le[PLT_ENTRY_SIZE] =
0xf0, 0xff, 0xf0, 0x6f, /* nop */
0xf0, 0xff, 0xf0, 0x6f, /* nop */
0x10, 0x01, 0x00, 0xce, /* movi -GOT_BIAS, r17 */
- 0x10, 0x45, 0xcb, 0x00, /* sub r12, r17, r17 */
+ 0x10, 0x45, 0xc9, 0x00, /* add r12, r17, r17 */
0x90, 0x09, 0x10, 0x8d, /* ld.q r17, 16, r25 */
0x00, 0x66, 0xf1, 0x6b, /* ptabs r25, tr0 */
0x10, 0x05, 0x10, 0x8d, /* ld.q r17, 8, r17 */