1
0
mirror of https://github.com/fspc/gbootroot.git synced 2025-02-23 09:03:23 -05:00

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

This commit is contained in:
freesource 2001-11-29 06:28:53 +00:00
parent 1791729abd
commit eeb7a7a56d

View File

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