summaryrefslogtreecommitdiffstats
path: root/kernel/arch/x86/entry/entry_32.S
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/x86/entry/entry_32.S')
-rw-r--r--kernel/arch/x86/entry/entry_32.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/arch/x86/entry/entry_32.S b/kernel/arch/x86/entry/entry_32.S
index 2d722ee01..3bcef8bdb 100644
--- a/kernel/arch/x86/entry/entry_32.S
+++ b/kernel/arch/x86/entry/entry_32.S
@@ -782,8 +782,8 @@ ftrace_graph_call:
jmp ftrace_stub
#endif
-.globl ftrace_stub
-ftrace_stub:
+/* This is weak to keep gas from relaxing the jumps */
+WEAK(ftrace_stub)
ret
END(ftrace_caller)