Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/bfd Add missing parens that caused PLT sl...



details:   https://anonhg.NetBSD.org/src/rev/04aa73d2ef05
branches:  trunk
changeset: 537014:04aa73d2ef05
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Wed Sep 25 20:05:14 2002 +0000

description:
Add missing parens that caused PLT slots >=32768 to jump to the wrong place.

diffstat:

 gnu/dist/toolchain/bfd/elf64-sparc.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r bdc0fecc560e -r 04aa73d2ef05 gnu/dist/toolchain/bfd/elf64-sparc.c
--- a/gnu/dist/toolchain/bfd/elf64-sparc.c      Wed Sep 25 19:39:16 2002 +0000
+++ b/gnu/dist/toolchain/bfd/elf64-sparc.c      Wed Sep 25 20:05:14 2002 +0000
@@ -906,8 +906,8 @@
          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);
 
          bfd_put_32 (output_bfd, 0x8a10000f, entry);    /* mov %o7,%g5 */
          bfd_put_32 (output_bfd, 0x40000002, entry+4);  /* call .+8 */



Home | Main Index | Thread Index | Old Index