diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2022-03-22 15:46:15 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2022-04-19 09:18:02 +0000 |
commit | 2e38975e5aa41c576b87e5766b51d28fed0034ee (patch) | |
tree | 6fb4f12a08dd0702f41c0df74587165dfe7ec373 /.github | |
parent | a0290386cf0de2b3e9e36df9cd37f213b59ca628 (diff) | |
download | src-2e38975e5aa41c576b87e5766b51d28fed0034ee.tar.gz src-2e38975e5aa41c576b87e5766b51d28fed0034ee.zip |
Add an implementation of .mcount on arm64
To support cc -pg on arm64 we need to implement .mcount. As clang and
gcc think it is function like it just needs to load the arguments
to _mcount and call it.
On gcc the first argument is passed in x0, however this is missing on
clang so we need to load it from the stack. As it's the caller return
address this will be at a known location.
PR: 262709
Reviewed by: emaste (earlier version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34634
(cherry picked from commit 16d5f9a1649e6a3e5841c6c41d6af9430ed9f064)
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions