Browse Source

Added the size output for replacements, this was being skipped because of a next loop.

master
freesource 23 years ago
parent
commit
eeb7a7a56d
  1. 10
      BootRoot/Yard.pm

10
BootRoot/Yard.pm

@ -833,6 +833,8 @@ sub space_check {
info(1, info(1,
"Counting bytes of replacement $replacement", "Counting bytes of replacement $replacement",
" (STRIPPED DEBUG)\n"); " (STRIPPED DEBUG)\n");
my $rep_size = bytes_allocated($replacement);
info(1, "$replacement size $rep_size\n");
$total_bytes += bytes_allocated($tmp_strip); $total_bytes += bytes_allocated($tmp_strip);
unlink($tmp_strip); unlink($tmp_strip);
next; next;
@ -845,6 +847,8 @@ sub space_check {
info(1, info(1,
"Counting bytes of replacement $replacement", "Counting bytes of replacement $replacement",
" (STRIPPED ALL)\n"); " (STRIPPED ALL)\n");
my $rep_size = bytes_allocated($replacement);
info(1, "$replacement size $rep_size\n");
$total_bytes += bytes_allocated($tmp_strip); $total_bytes += bytes_allocated($tmp_strip);
unlink($tmp_strip); unlink($tmp_strip);
next; next;
@ -862,6 +866,8 @@ sub space_check {
info(1, info(1,
"Counting bytes of replacement $replacement", "Counting bytes of replacement $replacement",
" (STRIPPED DEBUG)\n"); " (STRIPPED DEBUG)\n");
my $rep_size = bytes_allocated($replacement);
info(1, "$replacement size $rep_size\n");
$total_bytes += bytes_allocated($tmp_strip); $total_bytes += bytes_allocated($tmp_strip);
unlink($tmp_strip); unlink($tmp_strip);
next; next;
@ -876,12 +882,16 @@ sub space_check {
sys("objcopy --strip-all $replacement $tmp_strip"); sys("objcopy --strip-all $replacement $tmp_strip");
info(1, "Counting bytes of replacement $replacement", info(1, "Counting bytes of replacement $replacement",
" (STRIPPED ALL)\n"); " (STRIPPED ALL)\n");
my $rep_size = bytes_allocated($replacement);
info(1, "$replacement size $rep_size\n");
$total_bytes += bytes_allocated($tmp_strip); $total_bytes += bytes_allocated($tmp_strip);
unlink($tmp_strip); unlink($tmp_strip);
next; next;
} }
} }
info(1, "Counting bytes of replacement $replacement\n"); info(1, "Counting bytes of replacement $replacement\n");
my $rep_size = bytes_allocated($replacement);
info(1, "$replacement size $rep_size\n");
$total_bytes += bytes_allocated($replacement); $total_bytes += bytes_allocated($replacement);
} elsif (-l $file or $links_to{$file}) { ## no strip } elsif (-l $file or $links_to{$file}) { ## no strip

Loading…
Cancel
Save