projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86: Fix export for mcount and __fentry__
[cascardo/linux.git]
/
arch
/
x86
/
kernel
/
mcount_64.S
diff --git
a/arch/x86/kernel/mcount_64.S
b/arch/x86/kernel/mcount_64.S
index
6192422
..
7b0d3da
100644
(file)
--- a/
arch/x86/kernel/mcount_64.S
+++ b/
arch/x86/kernel/mcount_64.S
@@
-7,6
+7,7
@@
#include <linux/linkage.h>
#include <asm/ptrace.h>
#include <asm/ftrace.h>
#include <linux/linkage.h>
#include <asm/ptrace.h>
#include <asm/ftrace.h>
+#include <asm/export.h>
.code64
.code64
@@
-17,8
+18,10
@@
#ifdef CC_USING_FENTRY
# define function_hook __fentry__
#ifdef CC_USING_FENTRY
# define function_hook __fentry__
+EXPORT_SYMBOL(__fentry__)
#else
# define function_hook mcount
#else
# define function_hook mcount
+EXPORT_SYMBOL(mcount)
#endif
/* All cases save the original rbp (8 bytes) */
#endif
/* All cases save the original rbp (8 bytes) */