[lintian] 02/02: objdump-info-helper: Retain only UND and .text symbols
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 2b216212216749625f7941336e48d0e047d6ade4
Author: Niels Thykier <niels@thykier.net>
Date: Sat Feb 6 09:51:29 2016 +0000
objdump-info-helper: Retain only UND and .text symbols
We do not use any symbol in the other segments anyway. Notably, the
".bss" commonly contains irrelevant symbols (e.g. stdout).
Signed-off-by: Niels Thykier <niels@thykier.net>
---
helpers/coll/objdump-info-helper | 3 +++
1 file changed, 3 insertions(+)
diff --git a/helpers/coll/objdump-info-helper b/helpers/coll/objdump-info-helper
index e41b404..c3d974d 100755
--- a/helpers/coll/objdump-info-helper
+++ b/helpers/coll/objdump-info-helper
@@ -245,6 +245,9 @@ sub finish_file {
if ($seg =~ m/^\d+$/ and defined $sections[$seg]) {
$seg = $sections[$seg];
}
+ # We only care about undefined symbols and symbols in
+ # the .text segment.
+ next if $seg ne 'UND' and $seg ne '.text';
print " $seg $ver $sym\n";
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: