Re: lintian: binary-has-unneeded-section
On Fri, 2 Feb 2001, Drew Parsons wrote:
>...
> W: meschach: binary-has-unneeded-section ./usr/lib/libmeschach.so.1.2 .note
> W: meschach: binary-has-unneeded-section ./usr/lib/libmeschach.so.1.2 .comment
>
>
> I got no idea whatsoever what the second two messages mean. I'm compiling
> the library with flags -fPIC to get a shared library. What's all this about
> uneeded sections, notes and comments?
These are sections you can remove when you strip it.
>From dh_strip:
foreach (@shared_libs) {
# Note that all calls to strip on shared libs
# *must* inclde the --strip-unneeded.
doit("strip","--remove-section=.comment","--remove-section=.note","--strip-unneeded",$_);
}
foreach (@executables) {
doit("strip","--remove-section=.comment","--remove-section=.note",$_);
}
foreach (@static_libs) {
doit("strip","--strip-debug",$_);
}
That means you should do a
strip --remove-section=.comment --remove-section=.note --strip-unneeded debian/tmp/usr/lib/libmeschach.so.1.2
> Drew
cu,
Adrian
PS: Sorry that the lines are too long but I didn't see a good way to break
them.
--
A "No" uttered from deepest conviction is better and greater than a
"Yes" merely uttered to please, or what is worse, to avoid trouble.
-- Mahatma Ghandi
Reply to: