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: Cary Coutant <ccoutant at google dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>, Nick Clifton <nickc at redhat dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Tue, 3 Aug 2010 13:47:26 -0700
- 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>
>>> Sorry for not noticing it before. Did you update assembler document?
>>
>> No -- you mean doc/as.texinfo, right? Should the new options just go
>> into the main list of options, in alphabetical order?
>
> I think alphabetical order should work.
I forgot about this until Nick reminded me. How's this?
Sorry for the delay.
-cary
* doc/as.texinfo: Add --compress-debug-sections,
--nocompress-debug-sections.
diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo
index a8327b8..f17c591 100644
--- a/gas/doc/as.texinfo
+++ b/gas/doc/as.texinfo
@@ -232,6 +232,7 @@ gcc(1), ld(1), and the Info entries for
@file{binutils} and @file{ld}.
@smallexample
@c man begin SYNOPSIS
@value{AS} [@b{-a}[@b{cdghlns}][=@var{file}]] [@b{--alternate}] [@b{-D}]
+ [@b{--compress-debug-sections}] [@b{--nocompress-debug-sections}]
[@b{--debug-prefix-map} @var{old}=@var{new}]
[@b{--defsym} @var{sym}=@var{val}] [@b{-f}] [@b{-g}] [@b{--gstabs}]
[@b{--gstabs+}] [@b{--gdwarf-2}] [@b{--help}] [@b{-I} @var{dir}] [@b{-J}]
@@ -552,6 +553,14 @@ Begin in alternate macro mode.
@xref{Altmacro,,@code{.altmacro}}.
@end ifclear
+@item --compress-debug-sections
+Compress DWARF debug sections using zlib. The debug sections are renamed
+to begin with @samp{.zdebug}, and the resulting object file may not be
+compatible with older linkers and object file utilities.
+
+@item --nocompress-debug-sections
+Do not compress DWARF debug sections. This is the default.
+
@item -D
Ignored. This option is accepted for script compatibility with calls to
other assemblers.