aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-sparc.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2001-09-25 22:12:29 +0000
committerJakub Jelinek <jakub@redhat.com>2001-09-25 22:12:29 +0000
commite62de969f096f87e79a62eca52968460dcf1226f (patch)
tree58ca729c84b9f3b1cad730a9eef62ea99a3ecaa6 /bfd/elf64-sparc.c
parent5d5849d7b5feeb44798ab58c257b7aee5f72f976 (diff)
downloadgdb-e62de969f096f87e79a62eca52968460dcf1226f.zip
gdb-e62de969f096f87e79a62eca52968460dcf1226f.tar.gz
gdb-e62de969f096f87e79a62eca52968460dcf1226f.tar.bz2
* elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
computation.
Diffstat (limited to 'bfd/elf64-sparc.c')
-rw-r--r--bfd/elf64-sparc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf64-sparc.c b/bfd/elf64-sparc.c
index 6fd24f9..cb03eeb 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