From f63834c6fc502d630f575cf7ef2932dc5fa8b3eb Mon Sep 17 00:00:00 2001 From: jakub Date: Tue, 25 Sep 2001 22:12:28 +0000 Subject: [PATCH] * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot computation. --- bfd/ChangeLog | 5 +++++ bfd/elf64-sparc.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3335f15148..9984482d01 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2001-09-25 Jakub Jelinek + + * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot + computation. + 2001-09-25 H.J. Lu * bfd-in2.h: Regenerated. diff --git a/bfd/elf64-sparc.c b/bfd/elf64-sparc.c index 6fd24f9f95..cb03eeb548 100644 --- a/bfd/elf64-sparc.c +++ b/bfd/elf64-sparc.c @@ -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 -- 2.11.0