Re: Policy for stripping binaries
On Sat, Apr 21, 2001 at 04:44:24PM -0400, Bob Hilliard wrote:
> gcc apparently creates sections `.note' and `.comment' when compiling
> binaries. Running either `strip' or the -s option to install does not
> remove these redundant sections. Lintian issues a warning
> `binary-has-unneeded-section' when it detects these sections in a
> binary.
>
> I don't think lintian should warn about things that are permitted
> by policy. I propose that policy add a recommendation to use `strip
> --remove-section=.comment --remove-section=.note' on binaries.
>
You will note that dh_strip does this by default.
doit("strip","--remove-section=.comment",
"--remove-section=.note","--strip-unneeded",$_);
Reply to: