perlasm/x86*.pl: add endbranch instruction.

For further information see "Control-flow Enforcement Technology
Preview" by Intel.

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Andy Polyakov 2016-06-12 16:21:37 +02:00
parent cc77d0d84a
commit 4e3d2866b6
2 changed files with 9 additions and 0 deletions

View File

@ -864,6 +864,10 @@ my $vprotq = sub {
}
};
my $endbranch = sub {
(0xf3,0x0f,0x1e,0xfa);
};
if ($nasm) {
print <<___;
default rel

View File

@ -172,6 +172,11 @@ sub ::vprotd
{ &::generic("vprotd",@_); }
}
sub ::endbranch
{
&::data_byte(0xf3,0x0f,0x1e,0xfb);
}
# label management
$lbdecor="L"; # local label decoration, set by package
$label="000";