x86: Enable Intel CET
When Intel CET is enabled, we need to include <cet.h> in assembly codes to mark Intel CET support and place _CET_ENDBR at the function entry.
This commit is contained in:
@@ -451,7 +451,8 @@ REALNAME:
|
||||
.align 512; \
|
||||
.globl REALNAME ;\
|
||||
.type REALNAME, @function; \
|
||||
REALNAME:
|
||||
REALNAME: \
|
||||
_CET_ENDBR
|
||||
|
||||
#ifdef PROFILE
|
||||
#define PROFCODE call *mcount@GOTPCREL(%rip)
|
||||
|
||||
Reference in New Issue
Block a user