diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/recordmcount.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl index eeac71c87c66..9f75438f65e2 100755 --- a/scripts/recordmcount.pl +++ b/scripts/recordmcount.pl | |||
| @@ -170,6 +170,17 @@ if ($arch eq "x86_64") { | |||
| 170 | $objcopy .= " -O elf32-i386"; | 170 | $objcopy .= " -O elf32-i386"; |
| 171 | $cc .= " -m32"; | 171 | $cc .= " -m32"; |
| 172 | 172 | ||
| 173 | } elsif ($arch eq "sh") { | ||
| 174 | $section_regex = "Disassembly of section\\s+(\\S+):"; | ||
| 175 | $function_regex = "^([0-9a-fA-F]+)\\s+<(.*?)>:"; | ||
| 176 | $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\smcount\$"; | ||
| 177 | $type = ".long"; | ||
| 178 | |||
| 179 | # force flags for this arch | ||
| 180 | $ld .= " -m shlelf_linux"; | ||
| 181 | $objcopy .= " -O elf32-sh-linux"; | ||
| 182 | $cc .= " -m32"; | ||
| 183 | |||
| 173 | } else { | 184 | } else { |
| 174 | die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD"; | 185 | die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD"; |
| 175 | } | 186 | } |
