mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
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:
parent
cc77d0d84a
commit
4e3d2866b6
@ -864,6 +864,10 @@ my $vprotq = sub {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
my $endbranch = sub {
|
||||||
|
(0xf3,0x0f,0x1e,0xfa);
|
||||||
|
};
|
||||||
|
|
||||||
if ($nasm) {
|
if ($nasm) {
|
||||||
print <<___;
|
print <<___;
|
||||||
default rel
|
default rel
|
||||||
|
@ -172,6 +172,11 @@ sub ::vprotd
|
|||||||
{ &::generic("vprotd",@_); }
|
{ &::generic("vprotd",@_); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub ::endbranch
|
||||||
|
{
|
||||||
|
&::data_byte(0xf3,0x0f,0x1e,0xfb);
|
||||||
|
}
|
||||||
|
|
||||||
# label management
|
# label management
|
||||||
$lbdecor="L"; # local label decoration, set by package
|
$lbdecor="L"; # local label decoration, set by package
|
||||||
$label="000";
|
$label="000";
|
||||||
|
Loading…
Reference in New Issue
Block a user