Use newly added __used attribute to keep static function symbol from
being eliminated.
This commit is contained in:
parent
b289983ea4
commit
8b5ae4db0d
@ -92,7 +92,7 @@ extern int mcount_lock;
|
||||
#define FUNCTION_ALIGNMENT 4
|
||||
|
||||
#define _MCOUNT_DECL \
|
||||
static void _mcount(uintfptr_t frompc, uintfptr_t selfpc) __unused; \
|
||||
static void _mcount(uintfptr_t frompc, uintfptr_t selfpc) __used; \
|
||||
static void _mcount
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
Loading…
Reference in New Issue
Block a user