From: Alan Modra Date: Tue, 12 Feb 2002 06:34:57 +0000 (+0000) Subject: * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing X-Git-Tag: gdb_5_2-branchpoint~311 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ad3a73b15990b52e60b99a55069a6756ea6eee8;p=thirdparty%2Fbinutils-gdb.git * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing 64k boundary. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a8d4b87d715..bd3fc783f38 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ 2002-02-12 Alan Modra + * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing + 64k boundary. + * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic DT_PPC64_OPD and DT_PPC64_OPDSZ tags. (ppc64_elf_finish_dynamic_sections): Set values for them. diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index e0fb9bfaa98..cca9b7f2bda 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -3255,7 +3255,7 @@ ppc64_elf_size_stubs (obfd, info, changed) /* If the .plt doesn't have any entries crossing a 64k boundary, 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; /* OK, so we have at least one transition. Since .plt entries are