Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182292
b: refs/heads/master
c: dfaa9e2
h: refs/heads/master
v: v3
  • Loading branch information
Wolfram Sang authored and Steven Rostedt committed Jan 6, 2010
1 parent 4ad6621 commit 1ee09fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 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: dc4f8845ee2ca39fe054a2d911729ffd269b4b66
refs/heads/master: dfaa9e2c5707b2c217c0121aac796e0fa3051482
29 changes: 11 additions & 18 deletions trunk/scripts/recordmcount.pl
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,14 @@
".text.unlikely" => 1,
);

$objdump = "objdump" if ((length $objdump) == 0);
$objcopy = "objcopy" if ((length $objcopy) == 0);
$cc = "gcc" if ((length $cc) == 0);
$ld = "ld" if ((length $ld) == 0);
$nm = "nm" if ((length $nm) == 0);
$rm = "rm" if ((length $rm) == 0);
$mv = "mv" if ((length $mv) == 0);
# Note: we are nice to C-programmers here, thus we skip the '||='-idiom.
$objdump = 'objdump' if (!$objdump);
$objcopy = 'objcopy' if (!$objcopy);
$cc = 'gcc' if (!$cc);
$ld = 'ld' if (!$ld);
$nm = 'nm' if (!$nm);
$rm = 'rm' if (!$rm);
$mv = 'mv' if (!$mv);

#print STDERR "running: $P '$arch' '$objdump' '$objcopy' '$cc' '$ld' " .
# "'$nm' '$rm' '$mv' '$inputfile'\n";
Expand Down Expand Up @@ -194,12 +195,8 @@ sub check_objcopy
}
}

if ($arch eq "x86") {
if ($bits == 64) {
$arch = "x86_64";
} else {
$arch = "i386";
}
if ($arch eq 'x86') {
$arch = ($bits == 64) ? 'x86_64' : 'i386';
}

#
Expand Down Expand Up @@ -476,11 +473,7 @@ sub update_funcs
$read_headers = 0;

# Only record text sections that we know are safe
if (defined($text_sections{$1})) {
$read_function = 1;
} else {
$read_function = 0;
}
$read_function = defined($text_sections{$1});
# print out any recorded offsets
update_funcs();

Expand Down

0 comments on commit 1ee09fe

Please sign in to comment.