diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-08-20 10:07:35 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-14 10:36:00 +0200 |
commit | 8feff1cacc29e9cfdc6d1ce5f2108db87b91046e (patch) | |
tree | b8670f1cd683039263f6f1f98962c8a6ed4d6ad6 /usr/gen_init_cpio.c | |
parent | d74fcd1e4e8842d5302cd303ef25cef7e67f68b4 (diff) | |
download | linux-8feff1cacc29e9cfdc6d1ce5f2108db87b91046e.tar.gz linux-8feff1cacc29e9cfdc6d1ce5f2108db87b91046e.tar.bz2 linux-8feff1cacc29e9cfdc6d1ce5f2108db87b91046e.zip |
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 'usr/gen_init_cpio.c')
0 files changed, 0 insertions, 0 deletions