aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/recordmcount.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index 44b4b23e91b2..e4922a6c963b 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -108,6 +108,20 @@ if ($#ARGV < 6) {
108 108
109my ($arch, $objdump, $objcopy, $cc, $ld, $nm, $rm, $mv, $inputfile) = @ARGV; 109my ($arch, $objdump, $objcopy, $cc, $ld, $nm, $rm, $mv, $inputfile) = @ARGV;
110 110
111if ($arch eq "i386") {
112 $ld = "ld -m elf_i386";
113 $objdump = "objdump -M i386";
114 $objcopy = "objcopy -O elf32-i386";
115 $cc = "gcc -m32";
116}
117
118if ($arch eq "x86_64") {
119 $ld = "ld -m elf_x86_64";
120 $objdump = "objdump -M x86-64";
121 $objcopy = "objcopy -O elf64-x86-64";
122 $cc = "gcc -m64";
123}
124
111$objdump = "objdump" if ((length $objdump) == 0); 125$objdump = "objdump" if ((length $objdump) == 0);
112$objcopy = "objcopy" if ((length $objcopy) == 0); 126$objcopy = "objcopy" if ((length $objcopy) == 0);
113$cc = "gcc" if ((length $cc) == 0); 127$cc = "gcc" if ((length $cc) == 0);