diff options
| author | Mike Pall <mike> | 2025-10-16 14:24:52 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2025-10-16 14:24:52 +0200 |
| commit | 25a61a182166fec06f1a1a025eb8fabbb6cf483e (patch) | |
| tree | da55c519b1302d3a1eb082b5acf1b11e57cbd268 /src/Makefile | |
| parent | 5c3254d68d2579bf8c5bd1e39e612582fb5a04f6 (diff) | |
| download | luajit-25a61a182166fec06f1a1a025eb8fabbb6cf483e.tar.gz luajit-25a61a182166fec06f1a1a025eb8fabbb6cf483e.tar.bz2 luajit-25a61a182166fec06f1a1a025eb8fabbb6cf483e.zip | |
x64: Add support for CET IBT.
Note: this is not enabled by default, look for CET in lj_arch.h
Contributed by Yuichiro Naito. #1391
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index 5dd98a31..d23e0db2 100644 --- a/src/Makefile +++ b/src/Makefile | |||
| @@ -446,6 +446,10 @@ ifneq (,$(findstring LJ_ABI_PAUTH 1,$(TARGET_TESTARCH))) | |||
| 446 | DASM_AFLAGS+= -D PAUTH | 446 | DASM_AFLAGS+= -D PAUTH |
| 447 | TARGET_ARCH+= -DLJ_ABI_PAUTH=1 | 447 | TARGET_ARCH+= -DLJ_ABI_PAUTH=1 |
| 448 | endif | 448 | endif |
| 449 | ifneq (,$(findstring LJ_CET_BR 1,$(TARGET_TESTARCH))) | ||
| 450 | DASM_AFLAGS+= -D CET_BR | ||
| 451 | TARGET_ARCH+= -DLJ_CET_BR=1 | ||
| 452 | endif | ||
| 449 | DASM_AFLAGS+= -D VER=$(subst LJ_ARCH_VERSION_,,$(filter LJ_ARCH_VERSION_%,$(subst LJ_ARCH_VERSION ,LJ_ARCH_VERSION_,$(TARGET_TESTARCH)))) | 453 | DASM_AFLAGS+= -D VER=$(subst LJ_ARCH_VERSION_,,$(filter LJ_ARCH_VERSION_%,$(subst LJ_ARCH_VERSION ,LJ_ARCH_VERSION_,$(TARGET_TESTARCH)))) |
| 450 | ifeq (Windows,$(TARGET_SYS)) | 454 | ifeq (Windows,$(TARGET_SYS)) |
| 451 | DASM_AFLAGS+= -D WIN | 455 | DASM_AFLAGS+= -D WIN |
