ftrace/x86: mcount offset calculation
Do the mcount offset adjustment in the recordmcount.pl/recordmcount.[ch] at compile time and not in ftrace_call_adjust at run time. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
07d8b595f3
commit
521ccb5c4a
3 changed files with 7 additions and 4 deletions
|
@ -223,6 +223,7 @@ if ($arch eq "x86_64") {
|
|||
$mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\smcount([+-]0x[0-9a-zA-Z]+)?\$";
|
||||
$type = ".quad";
|
||||
$alignment = 8;
|
||||
$mcount_adjust = -1;
|
||||
|
||||
# force flags for this arch
|
||||
$ld .= " -m elf_x86_64";
|
||||
|
@ -232,6 +233,7 @@ if ($arch eq "x86_64") {
|
|||
|
||||
} elsif ($arch eq "i386") {
|
||||
$alignment = 4;
|
||||
$mcount_adjust = -1;
|
||||
|
||||
# force flags for this arch
|
||||
$ld .= " -m elf_i386";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue