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

[SCM] Debian package checker branch, master, updated. 1.24.2-34-g8a55091



The following commit has been merged in the master branch:
commit 8a55091464cc01d9b50ee946f30c62163d3fd05f
Author: Adam D. Barratt <adam@adam-barratt.org.uk>
Date:   Fri Jul 25 06:35:27 2008 +0100

    Add objdump information on segments which various checks scripts use which hadn't made it here yet.

diff --git a/debian/changelog b/debian/changelog
index d3162ef..dfd298e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -63,7 +63,8 @@ lintian (1.24.3) unstable; urgency=low
 
   * lib/Lintian/Collect/Binary.pm:
     + [ADB] When parsing objdump-info, indicate whether a shared object is
-      an Ocaml executable.
+      an Ocaml executable.  Also add information on segments which various
+      checks scripts use which hadn't made it here yet.
 
   * man/lintian.1
     + [ADB] Update the list of check scripts, removing the no longer present
diff --git a/lib/Lintian/Collect/Binary.pm b/lib/Lintian/Collect/Binary.pm
index fc1907f..7e59da5 100644
--- a/lib/Lintian/Collect/Binary.pm
+++ b/lib/Lintian/Collect/Binary.pm
@@ -184,8 +184,21 @@ sub objdump_info {
                 $file->{CXXABI} = 1;
             } elsif (m%Requesting program interpreter:\s+/lib/klibc-\S+\.so%) {
                 $file->{KLIBC} = 1;
-            }
-        }
+	    } elsif (m/^\s*TEXTREL\s/o) {
+		$file->{TEXTREL} = 1;
+	    } elsif (m/^\s*INTERP\s/) {
+		$file->{INTERP} = 1;
+	    } elsif (m/^\s*STACK\s/) {
+		$file->{STACK} = 0;
+	    } else {
+		if (defined $file->{STACK} and $file->{STACK} eq 0) {
+		    m/\sflags\s+(\S+)/o;
+		    $file->{STACK} = $1;
+		} else {
+		    $file->{OTHER_DATA} = 1;
+		}
+	    }
+	}
     }
     if ($file) {
         $objdump_info{$file->{name}} = $file;

-- 
Debian package checker


Reply to: