i386-mcount.S: Add _CET_ENDBR to _mcount and __fentry__

Since _mcount and __fentry__ don't use ENTRY, we need to add _CET_ENDBR
by hand.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
H.J. Lu 2020-02-01 05:44:55 -08:00
parent 4031d7484a
commit 825b58f3fb

View File

@ -30,6 +30,7 @@
.type C_SYMBOL_NAME(_mcount), @function
.align ALIGNARG(4)
C_LABEL(_mcount)
_CET_ENDBR
/* Save the caller-clobbered registers. */
pushl %eax
pushl %ecx
@ -58,6 +59,7 @@ weak_alias (_mcount, mcount)
.type C_SYMBOL_NAME(__fentry__), @function
.align ALIGNARG(4)
C_LABEL(__fentry__)
_CET_ENDBR
/* Save the caller-clobbered registers. */
pushl %eax
pushl %ecx