Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116590
b: refs/heads/master
c: 3989cce
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Oct 14, 2008
1 parent 66cf272 commit 13d4084
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c5131ad6c3cbe8f6674993e29a76cecf8deb4384
refs/heads/master: 3989cce82b272bd6312555fcc47c11715c157102
14 changes: 14 additions & 0 deletions trunk/scripts/recordmcount.pl
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,20 @@

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 Down

0 comments on commit 13d4084

Please sign in to comment.