Skip to content

Commit

Permalink
openssl, bugfix: relocation truncated on ppc64 and riscv64.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Feb 10, 2024
1 parent 2090f14 commit eb710f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion openssl/src/crypto/aes/gen/linux_riscv64/aes-riscv64.s
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,8 @@ AES_set_decrypt_key:
addi sp,sp,-16
sd x12,0(sp) # We need to hold onto this!
sd ra,8(sp)
jal ra,AES_set_encrypt_key
la t0,AES_set_encrypt_key
jalr ra,t0
ld x12,0(sp)
ld ra,8(sp)
addi sp,sp,16
Expand Down
4 changes: 3 additions & 1 deletion openssl/src/crypto/chacha/gen/linux_ppc64/chachap10-ppc.s
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ ChaCha20_ctr32_vsx_p10:
.localentry ChaCha20_ctr32_vsx_p10,0

cmpldi 5,255
bgt ChaCha20_ctr32_vsx_8x
ble .Not_greater_than_8x
b ChaCha20_ctr32_vsx_8x
.Not_greater_than_8x:
stdu 1,-224(1)
mflr 0
li 10,127
Expand Down

0 comments on commit eb710f2

Please sign in to comment.