x86_64: Add endbranch at function entries for Intel CET
[oweals/openssl.git] / crypto / aes / asm / bsaes-x86_64.pl
index b75d95ffab341e861a534edf62db692c951fb162..2e46802dfe966f4dbbb7f8c740b4a0eef24c9f1f 100644 (file)
@@ -1616,6 +1616,7 @@ $code.=<<___;
 .align 16
 bsaes_cbc_encrypt:
 .cfi_startproc
+       endbranch
 ___
 $code.=<<___ if ($win64);
        mov     48(%rsp),$arg6          # pull direction flag
@@ -1921,6 +1922,7 @@ $code.=<<___;
 .align 16
 bsaes_ctr32_encrypt_blocks:
 .cfi_startproc
+       endbranch
        mov     %rsp, %rax
 .Lctr_enc_prologue:
        push    %rbp