summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2008-08-20 10:07:35 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-14 10:36:00 +0200
commit8feff1cacc29e9cfdc6d1ce5f2108db87b91046e (patch)
treeb8670f1cd683039263f6f1f98962c8a6ed4d6ad6 /arch
parentd74fcd1e4e8842d5302cd303ef25cef7e67f68b4 (diff)
downloadop-kernel-dev-8feff1cacc29e9cfdc6d1ce5f2108db87b91046e.zip
op-kernel-dev-8feff1cacc29e9cfdc6d1ce5f2108db87b91046e.tar.gz
ftrace: handle weak symbol functions
During tests and checks, I've discovered that there were failures to convert mcount callers into nops. Looking deeper into these failures, code that was attempted to be changed was not an mcount caller. The current code only updates if the code being changed is what it expects, but I still investigate any time there is a failure. What was happening is that a weak symbol was being used as a reference for other mcount callers. That weak symbol was also referenced elsewhere so the offsets were using the strong symbol and not the function symbol that it was referenced from. This patch changes the setting up of the mcount_loc section to search for a global function that is not weak. It will pick a local over a weak but if only a weak is found in a section, a warning is printed and the mcount location is not recorded (just to be safe). Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud