diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-02-01 05:44:55 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-02-01 05:44:55 -0800 |
commit | 825b58f3fb04781e559858510fe83a8c4bf28425 (patch) | |
tree | 497880c4a78614961fc0166f5292bbad43c73f1c /sysdeps/i386 | |
parent | 4031d7484ab3f6327184b5973d91f46978ebe8cf (diff) | |
download | glibc-825b58f3fb04781e559858510fe83a8c4bf28425.tar.gz glibc-825b58f3fb04781e559858510fe83a8c4bf28425.tar.xz glibc-825b58f3fb04781e559858510fe83a8c4bf28425.zip |
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>
Diffstat (limited to 'sysdeps/i386')
-rw-r--r-- | sysdeps/i386/i386-mcount.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/i386/i386-mcount.S b/sysdeps/i386/i386-mcount.S index 9516265bcb..8b60bd20fe 100644 --- a/sysdeps/i386/i386-mcount.S +++ b/sysdeps/i386/i386-mcount.S @@ -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 |