diff options
author | Stephen Clarke <stephen.clarke@earthling.net> | 2002-10-10 21:45:14 +0000 |
---|---|---|
committer | Stephen Clarke <stephen.clarke@earthling.net> | 2002-10-10 21:45:14 +0000 |
commit | 262c0940c28b555148f01b579c559ea664e6fa73 (patch) | |
tree | 811e9ad7bfa9b3c1cc1ce36570b275b433979c1b /bfd/elf32-sh.c | |
parent | 4be076853d59c009bdd3c314d7bf499de6d71a8e (diff) | |
download | gdb-262c0940c28b555148f01b579c559ea664e6fa73.tar.gz |
* 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/elf32-sh.c')
-rw-r--r-- | bfd/elf32-sh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c index 703ac4016be..90edf3f8f52 100644 --- a/bfd/elf32-sh.c +++ b/bfd/elf32-sh.c @@ -3047,7 +3047,7 @@ static const bfd_byte elf_sh_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, 0xca, 0x45, 0x10, /* sub.l r12, r17, r17 */ + 0x00, 0xc8, 0x45, 0x10, /* add.l r12, r17, r17 */ 0x89, 0x10, 0x09, 0x90, /* ld.l r17, 8, r25 */ 0x6b, 0xf1, 0x66, 0x00, /* ptabs r25, tr0 */ 0x89, 0x10, 0x05, 0x10, /* ld.l r17, 4, r17 */ @@ -3067,7 +3067,7 @@ static const bfd_byte elf_sh_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, 0xca, 0x00, /* sub.l r12, r17, r17 */ + 0x10, 0x45, 0xc8, 0x00, /* add.l r12, r17, r17 */ 0x90, 0x09, 0x10, 0x89, /* ld.l r17, 8, r25 */ 0x00, 0x66, 0xf1, 0x6b, /* ptabs r25, tr0 */ 0x10, 0x05, 0x10, 0x89, /* ld.l r17, 4, r17 */ |