* elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
authorJakub Jelinek <jakub@redhat.com>
Tue, 25 Sep 2001 22:12:29 +0000 (22:12 +0000)
committerJakub Jelinek <jakub@redhat.com>
Tue, 25 Sep 2001 22:12:29 +0000 (22:12 +0000)
computation.

bfd/ChangeLog
bfd/elf64-sparc.c

index 3335f15148cf75b35d10c39186966707244e344b..9984482d01b4050ec647de5bbb05e365e735a24b 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-25  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
+       computation.
+
 2001-09-25  H.J. Lu  <hjl@gnu.org>
 
        * bfd-in2.h: Regenerated.
index 6fd24f9f9572ee2b44f2b8088ee6b223fb89eece..cb03eeb54855e998a34bed954d818289002cf469 100644 (file)
@@ -921,8 +921,8 @@ sparc64_elf_build_plt (output_bfd, contents, nentries)
          entry = contents + i*PLT_ENTRY_SIZE + j*4*6;
          ptr = contents + i*PLT_ENTRY_SIZE + block*4*6 + j*8;
 
-         /* ldx [%o7 + ptr - entry+4], %g1 */
-         ldx = 0xc25be000 | ((ptr - entry+4) & 0x1fff);
+         /* ldx [%o7 + ptr - (entry+4)], %g1 */
+         ldx = 0xc25be000 | ((ptr - (entry+4)) & 0x1fff);
 
          /* mov %o7,%g5
             call .+8