bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/22756] Linker relaxation miscalculates symbol addresses on riscv


From: address@hidden
Subject: [Bug ld/22756] Linker relaxation miscalculates symbol addresses on riscv
Date: Thu, 31 May 2018 21:28:18 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22756

--- Comment #6 from Andreas Schwab <address@hidden> ---
Created attachment 11048
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11048&action=edit
Testcase

This is another test case that goes wrong, see the link file for the linker
command.  This is the tail of the objdump -d output:

000000000000ec50 <address@hidden>:
    ec50:       6406                    ld      s0,64(sp)
    ec52:       74e2                    ld      s1,56(sp)
    ec54:       7942                    ld      s2,48(sp)
    ec56:       79a2                    ld      s3,40(sp)
    ec58:       6161                    addi    sp,sp,80
    ec5a:       8082                    ret
    ec5c:                       jal     ra,10c5c <_crypt_psbox+0x9c>

000000000000ec5e <address@hidden>:
    ec5e:       a45f 6785 95be          0x95be6785a45f
    ec64:       80358593                addi    a1,a1,-2045
    ec68:       99f1                    andi    a1,a1,-4
    ec6a:                       j       1dc6a <_crypt_m_sbox+0xaa>

000000000000ec6c <address@hidden>:
    ec6c:       ec7f                    0xec7f
    ec6e:       6785                    lui     a5,0x1
    ec70:       963e                    add     a2,a2,a5
    ec72:                       li      a2,0

000000000000ec74 <address@hidden>:
    ec74:       8036                    c.mv    zero,a3
    ec76:       9a71                    andi    a2,a2,-4
    ec78:       f3dff06f                j       ebb4 <do_encrypt_r>
    ec7c:       0001e597                auipc   a1,0x1e
    ec80:       5ec58593                addi    a1,a1,1516 # 2d268
<nr_encrypt_ctx>
    ec84:       eadff06f                j       eb30 <do_setkey_r>
    ec88:       0001e617                auipc   a2,0x1e
    ec8c:       5e060613                addi    a2,a2,1504 # 2d268
<nr_encrypt_ctx>
    ec90:       f25ff06f                j       ebb4 <do_encrypt_r>

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]