diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-08 22:34:17 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-09 02:14:49 +0200 |
commit | 89db52f3fba403124701fdda0503a3443ca6016e (patch) | |
tree | db3fa49ac7bd0d571b61f522e0c9ffa9e977627f /src/crypto/chacha20-avx2-x86_64.S | |
parent | bb3ad137ef1907ec6cb5979cdd47b5e160f3a455 (diff) |
crypto/x86_64: satisfy stack validation 2.0
We change this to look like the code gcc generates, so as to keep the
objtool checker somewhat happy.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/chacha20-avx2-x86_64.S')
-rw-r--r-- | src/crypto/chacha20-avx2-x86_64.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/chacha20-avx2-x86_64.S b/src/crypto/chacha20-avx2-x86_64.S index 8aabae0..48d6cc4 100644 --- a/src/crypto/chacha20-avx2-x86_64.S +++ b/src/crypto/chacha20-avx2-x86_64.S @@ -43,7 +43,7 @@ ENTRY(chacha20_asm_8block_xor_avx2) vzeroupper # 4 * 32 byte stack, 32-byte aligned - mov %rsp, %r8 + lea 8(%rsp),%r10 and $~31, %rsp sub $0x80, %rsp @@ -441,6 +441,6 @@ ENTRY(chacha20_asm_8block_xor_avx2) vmovdqu %ymm15,0x01e0(%rsi) vzeroupper - mov %r8,%rsp + lea -8(%r10),%rsp ret ENDPROC(chacha20_asm_8block_xor_avx2) |