mirror of
				https://github.com/fspc/gbootroot.git
				synced 2025-11-04 08:15:36 -05:00 
			
		
		
		
	Added the size output for replacements, this was being skipped because of a next loop.
This commit is contained in:
		
							parent
							
								
									1791729abd
								
							
						
					
					
						commit
						eeb7a7a56d
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user