mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-20 05:53:26 +00:00
Add support for ENDBR instructions
These instructions are useful to support Intel Control-flow Enforcement Technology (CET), when JIT code is called through idirect jump. See `man gcc` "-fcf-protection" and https://www.felixcloutier.com/x86/endbr64
This commit is contained in:
parent
c525bcb902
commit
413b1a803c
@ -1151,6 +1151,8 @@ local map_op = {
|
|||||||
rep_0 = "F3",
|
rep_0 = "F3",
|
||||||
repe_0 = "F3",
|
repe_0 = "F3",
|
||||||
repz_0 = "F3",
|
repz_0 = "F3",
|
||||||
|
endbr32_0 = "F30F1EFB",
|
||||||
|
endbr64_0 = "F30F1EFA",
|
||||||
-- F4: *hlt
|
-- F4: *hlt
|
||||||
cmc_0 = "F5",
|
cmc_0 = "F5",
|
||||||
-- F6: test... mb,i; div... mb
|
-- F6: test... mb,i; div... mb
|
||||||
|
Loading…
Reference in New Issue
Block a user