OSDN Git Service

* elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le): Copy
authorAlan Modra <amodra@bigpond.net.au>
Fri, 23 Aug 2002 08:26:13 +0000 (08:26 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Fri, 23 Aug 2002 08:26:13 +0000 (08:26 +0000)
commit9aa2589714161b2f157088771e5eb156484fb81f
treeee975ee9b36c31c8456692b1bceac842ed835132
parentbde3f1da72cbfa47a3c7dc5934e16de61d8c5cbd
* elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le): Copy
contents of .got.plt[2] to tr0, not address of .got.plt.
(sh_elf_finish_dynamic_symbol): Do not apply GOT_BIAS when
patching absolute plt entry. For shmedia plt entry, set bottom bit
of branch to plt0 as this is a branch to an shmedia instruction.
* elf64-sh64.c (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le):
Copy contents of .got.plt[2] to tr0, not address of .got.plt.
(elf_sh64_plt_entry_be, elf_sh64_plt_entry_le): Use ptrel to
branch to plt0.
(sh64_elf64_finish_dynamic_symbol): Do not apply GOT_BIAS when
patching absolute plt entry. For shmedia plt entry, branch to
plt0 is now ptrel, so use relative offset.  Set bottom bit of
branch target as it is a branch to an shmedia instruction.
bfd/ChangeLog
bfd/elf32-sh.c
bfd/elf64-sh64.c