This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch] Add --compress-debug-sections option to gas
- From: Tristan Gingold <gingold at adacore dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: Cary Coutant <ccoutant at google dot com>, "H.J. Lu" <hjl dot tools at gmail dot com>, Binutils <binutils at sourceware dot org>
- Date: Thu, 5 Aug 2010 12:33:28 +0200
- Subject: Re: [patch] Add --compress-debug-sections option to gas
- References: <AANLkTim2Li4CdH8itmx1q-8oxxuH0EOcFjzaSsQzmKzX@mail.gmail.com> <AANLkTinCjncd5O3bAJQTWJadDb7v7N7epTRvm3wwnFwd@mail.gmail.com> <AANLkTinRje8qT_yHWSL2wVdvGIJd8Xb165zimOSQnZQ5@mail.gmail.com> <AANLkTimgUYshoBrHuBovljevGsqIPDN3v9GkqfBWuVcW@mail.gmail.com> <AANLkTikrgY36JzcuN46UyCRBx_xfxfy3AfzhoMYjuh4b@mail.gmail.com> <AANLkTinodTCNHnyKbm7rt0GZwev_ia6PboxS4Ae0SfBc@mail.gmail.com> <AANLkTikwgcdbw_oN9TQtrcgpbGyc6jX1qYyxxVhKHdpe@mail.gmail.com> <4C5960AC.7090405@redhat.com> <AANLkTimP4YUyAp+9RghPPSTwkvDy-46+6UYswcmdemoc@mail.gmail.com> <4C5A9264.8060805@redhat.com>
On Aug 5, 2010, at 12:28 PM, Nick Clifton wrote:
>
> Actually just looking at the code in write.c, is there actually any check for the absence of the zlibrary ? Ie can the sources currently be compiled on a system with zlib installed ?
with zlib *not* installed ? Yes, this is handled in compress-debug.c and yes I have tested that on vms :-)
> Also, if zlib is not installed, then it would be fairer to the user if the --compress-debug-section was not mentioned in the --help output, and produced a warning if used. Otherwise someone could add --compress-debug-sections to their command line and then wonder why they are not getting any smaller binaries.
Indeed.
Tristan.