提交 5e66684f 编写于 作者: A Anton Blanchard

powerpc: ftrace_caller, _mcount is exported to modules so needs _GLOBAL_TOC()

When testing the ftrace function tracer, I realised that ftrace_caller
and mcount are called from modules and they both call into C, therefore
they need the ABIv2 global entry point to establish r2.
Signed-off-by: NAnton Blanchard <anton@samba.org>
上级 169c7cee
...@@ -1175,7 +1175,7 @@ _GLOBAL(mcount) ...@@ -1175,7 +1175,7 @@ _GLOBAL(mcount)
_GLOBAL(_mcount) _GLOBAL(_mcount)
blr blr
_GLOBAL(ftrace_caller) _GLOBAL_TOC(ftrace_caller)
/* Taken from output of objdump from lib64/glibc */ /* Taken from output of objdump from lib64/glibc */
mflr r3 mflr r3
ld r11, 0(r1) ld r11, 0(r1)
...@@ -1199,10 +1199,7 @@ _GLOBAL(ftrace_graph_stub) ...@@ -1199,10 +1199,7 @@ _GLOBAL(ftrace_graph_stub)
_GLOBAL(ftrace_stub) _GLOBAL(ftrace_stub)
blr blr
#else #else
_GLOBAL(mcount) _GLOBAL_TOC(_mcount)
blr
_GLOBAL(_mcount)
/* Taken from output of objdump from lib64/glibc */ /* Taken from output of objdump from lib64/glibc */
mflr r3 mflr r3
ld r11, 0(r1) ld r11, 0(r1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册