]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/perlasm/cbc.pl
x86: Add endbranch to indirect branch targets for Intel CET
[thirdparty/openssl.git] / crypto / perlasm / cbc.pl
index 8aefefb6966c2fa2191264b39290ab67a7c0dc28..44a60eb7622d5bb6577f2db5f2da93595202c4e1 100644 (file)
@@ -165,21 +165,28 @@ sub cbc
        &jmp_ptr($count);
 
 &set_label("ej7");
+       &endbranch()
        &movb(&HB("edx"),       &BP(6,$in,"",0));
        &shl("edx",8);
 &set_label("ej6");
+       &endbranch()
        &movb(&HB("edx"),       &BP(5,$in,"",0));
 &set_label("ej5");
+       &endbranch()
        &movb(&LB("edx"),       &BP(4,$in,"",0));
 &set_label("ej4");
+       &endbranch()
        &mov("ecx",             &DWP(0,$in,"",0));
        &jmp(&label("ejend"));
 &set_label("ej3");
+       &endbranch()
        &movb(&HB("ecx"),       &BP(2,$in,"",0));
        &shl("ecx",8);
 &set_label("ej2");
+       &endbranch()
        &movb(&HB("ecx"),       &BP(1,$in,"",0));
 &set_label("ej1");
+       &endbranch()
        &movb(&LB("ecx"),       &BP(0,$in,"",0));
 &set_label("ejend");