* elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing

64k boundary.
This commit is contained in:
Alan Modra 2002-02-12 06:34:57 +00:00
parent 1939742290
commit 0ad3a73b15
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2002-02-12 Alan Modra <amodra@bigpond.net.au> 2002-02-12 Alan Modra <amodra@bigpond.net.au>
* elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
64k boundary.
* elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
DT_PPC64_OPD and DT_PPC64_OPDSZ tags. DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
(ppc64_elf_finish_dynamic_sections): Set values for them. (ppc64_elf_finish_dynamic_sections): Set values for them.

View File

@ -3255,7 +3255,7 @@ ppc64_elf_size_stubs (obfd, info, changed)
/* If the .plt doesn't have any entries crossing a 64k boundary, /* If the .plt doesn't have any entries crossing a 64k boundary,
then there is no need for bigger stubs. */ then there is no need for bigger stubs. */
if (next_64k <= plt_offset + htab->splt->_raw_size) if (plt_offset + htab->splt->_raw_size <= next_64k)
return true; return true;
/* OK, so we have at least one transition. Since .plt entries are /* OK, so we have at least one transition. Since .plt entries are