mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 04:50:07 +00:00
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:
parent
4031d7484a
commit
825b58f3fb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user