forked from Imagelibrary/binutils-gdb
* elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
computation.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user