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:
H.J. Lu
2021-04-30 18:01:14 -07:00
parent dc6b04c375
commit 53ee0b76bb
3 changed files with 13 additions and 2 deletions

View File

@@ -451,7 +451,8 @@ REALNAME:
.align 512; \
.globl REALNAME ;\
.type REALNAME, @function; \
REALNAME:
REALNAME: \
_CET_ENDBR
#ifdef PROFILE
#define PROFCODE call *mcount@GOTPCREL(%rip)