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

[lintian] 01/01: helpers/coll/objdump-info-helper: Keep TEXTRELs



This is an automated email from the git hooks/post-receive script.

jwilk pushed a commit to branch master
in repository lintian.

commit bbed93b87bc11aaae33d8d8e486b6eff00fcba2e
Author: Jakub Wilk <jwilk@debian.org>
Date:   Tue Mar 29 22:37:07 2016 +0200

    helpers/coll/objdump-info-helper: Keep TEXTRELs
    
    TEXTREL entries from the dynamic section are needed for the
    shlib-with-non-pic-code tag.
    
    This fixes regression introduced in
    3fd98d97a9a5c6f6be7043ad672c4b54925ec59e.
---
 debian/changelog                 | 4 ++++
 helpers/coll/objdump-info-helper | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a2c8025..b951f36 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -30,6 +30,10 @@ lintian (2.5.43) UNRELEASED; urgency=medium
       time substitution works again.  Thanks to Stuart
       Prescott for reporting the issue.
 
+  * helpers/coll/objdump-info-helper:
+    + [JW] Apply patch from Dan Nicholson to keep TEXTREL entries from the
+      dynamic section.  (Closes: #819506)
+
   * lib/Lintian/Check.pm:
     + [JW,ADB] Don't ignore midword punctuation characters when
       spell-checking.  (Closes: #818003)  Thanks to Andreas Beckmann for
diff --git a/helpers/coll/objdump-info-helper b/helpers/coll/objdump-info-helper
index c3d974d..bb5b176 100755
--- a/helpers/coll/objdump-info-helper
+++ b/helpers/coll/objdump-info-helper
@@ -168,6 +168,8 @@ while (my $line = <$readelf>) {
             $value =~ s/.*\[//;
             $value =~ s/\]\s*$//;
             $keep = 1;
+        } elsif ($type eq 'TEXTREL') {
+            $keep = 1;
         }
         $keep = 1
           if $value =~ s/^(?:Shared library|Library soname): \[(.*)\]/$1/;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: