Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116596
b: refs/heads/master
c: d74fcd1
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Ingo Molnar committed Oct 14, 2008
1 parent 6a11a11 commit f5b96ed
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6a4917e3ae5194a10e0723f96edc854c381e3063
refs/heads/master: d74fcd1e4e8842d5302cd303ef25cef7e67f68b4
28 changes: 14 additions & 14 deletions trunk/scripts/recordmcount.pl
Original file line number Diff line number Diff line change
Expand Up @@ -108,20 +108,6 @@

my ($arch, $objdump, $objcopy, $cc, $ld, $nm, $rm, $mv, $inputfile) = @ARGV;

if ($arch eq "i386") {
$ld = "ld -m elf_i386";
$objdump = "objdump -M i386";
$objcopy = "objcopy -O elf32-i386";
$cc = "gcc -m32";
}

if ($arch eq "x86_64") {
$ld = "ld -m elf_x86_64";
$objdump = "objdump -M x86-64";
$objcopy = "objcopy -O elf64-x86-64";
$cc = "gcc -m64";
}

$objdump = "objdump" if ((length $objdump) == 0);
$objcopy = "objcopy" if ((length $objcopy) == 0);
$cc = "gcc" if ((length $cc) == 0);
Expand All @@ -146,11 +132,25 @@
$function_regex = "<(.*?)>:";
$mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\smcount([+-]0x[0-9a-zA-Z]+)?\$";
$type = ".quad";

# force flags for this arch
$ld .= " -m elf_x86_64";
$objdump .= " -M x86-64";
$objcopy .= " -O elf64-x86-64";
$cc .= " -m64";

} elsif ($arch eq "i386") {
$section_regex = "Disassembly of section";
$function_regex = "<(.*?)>:";
$mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\smcount\$";
$type = ".long";

# force flags for this arch
$ld .= " -m elf_i386";
$objdump .= " -M i386";
$objcopy .= " -O elf32-i386";
$cc .= " -m32";

} else {
die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD";
}
Expand Down

0 comments on commit f5b96ed

Please sign in to comment.