[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.5.4-13-g4e5e69b



The following commit has been merged in the master branch:
commit 4e5e69b96530596b15a29bac906660128dac4ad8
Author: Niels Thykier <niels@thykier.net>
Date:   Thu Dec 1 22:12:23 2011 +0100

    Unconditionally record sections in the binary when using readelf
    
    When readelf is used, we previously forgot to output the sections in
    the binary.  We need these sections to (i.e.) check for incomplete
    stripping of binaries.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/collection/objdump-info b/collection/objdump-info
index eb64670..23b35aa 100755
--- a/collection/objdump-info
+++ b/collection/objdump-info
@@ -142,6 +142,11 @@ while (<FILES>) {
                         } elsif (m/^\s*\[(\d+)\]\s*(\S+)(?:\s|\Z)/
                               and $section eq 'SH') {
                             $sections[$1] = $2;
+                            # We need sections as well (i.e. for incomplete stripping)
+                            # - The 0 0 0 0 2**3 is just there to make it look like objdump output
+                            #   (supposedly we don't even check for those extra fields in
+                            #    L::Collect::Binary)
+                            print OUT " $1 $2   0 0 0 0 2**3\n";
                         } elsif (m/^\s*0x(?:[0-9A-F]+)\s+\((.*?)\)\s+(\S.*)\Z/i
                               and $section eq 'DS') {
                             my ($type, $value) = ($1, $2);

-- 
Debian package checker


Reply to: