diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-08-25 20:52:11 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-14 10:36:12 +0200 |
commit | f2f8458e751f9ae41dfec3c00a46d3e62dc38f60 (patch) | |
tree | c16c97b3891790c9ffedc59579876510a8352ae4 /Documentation/connector | |
parent | ftrace: clean up macro usage (diff) | |
download | linux-f2f8458e751f9ae41dfec3c00a46d3e62dc38f60.tar.xz linux-f2f8458e751f9ae41dfec3c00a46d3e62dc38f60.zip |
ftrace: objcopy version test for local symbols
The --globalize-symbols option came out in objcopy version 2.17.
If the kernel is being compiled on a system with a lower version of
objcopy, then we can not use the globalize / localize trick to
link to symbols pointing to local functions.
This patch tests the version of objcopy and will only use the trick
if the version is greater than or equal to 2.17. Otherwise, if an
object has only local functions within a section, it will give a
nice warning and recommend the user to upgrade their objcopy.
Leaving the symbols unrecorded is not that big of a deal, since the
mcount record method changes the actual mcount code to be a simple
"ret" without recording registers or anything.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/connector')
0 files changed, 0 insertions, 0 deletions