* elf32-ppc.c (allocate_dynrelocs): Use single slot for first 8192
authorJakub Jelinek <jakub@redhat.com>
Sat, 31 May 2003 07:55:10 +0000 (07:55 +0000)
committerJakub Jelinek <jakub@redhat.com>
Sat, 31 May 2003 07:55:10 +0000 (07:55 +0000)
plt entries, not just 8191.

bfd/ChangeLog
bfd/elf32-ppc.c

index ac381e6f64d0960910b3239b6999d3d73c69051f..04582f8b0f6b806f5279cb332388e19d61cce00c 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-31  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf32-ppc.c (allocate_dynrelocs): Use single slot for first 8192
+       plt entries, not just 8191.
+
 2003-05-30  Daniel Jacobowitz  <drow@mvista.com>
 
        * elfxx-mips.c (_bfd_mips_elf_discard_info): Correct loop index.
index 8c0e4d5e8f15a0c80c48c14b1becb25825aab9a5..d2cbd836f4038641ab160fe84c5fc20c76bc45b8 100644 (file)
@@ -2719,7 +2719,7 @@ allocate_dynrelocs (h, inf)
             for two entries is allocated.  */
          s->_raw_size += PLT_ENTRY_SIZE;
          if ((s->_raw_size - PLT_INITIAL_ENTRY_SIZE) / PLT_ENTRY_SIZE
-             >= PLT_NUM_SINGLE_ENTRIES)
+             > PLT_NUM_SINGLE_ENTRIES)
            s->_raw_size += PLT_ENTRY_SIZE;
 
          /* We also need to make an entry in the .rela.plt section.  */