diff options
author | Ian Lance Taylor <iant@google.com> | 2007-11-30 00:35:27 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-11-30 00:35:27 +0000 |
commit | 9a0910c33e1a6962d475ee0a994fd1f5e446a888 (patch) | |
tree | f30e7b369cc05383699fbe4780ee0839b8dbcdde /gold/options.cc | |
parent | 71195202dfb59bb7b61b35dc4cc5d202fab12020 (diff) | |
download | gdb-9a0910c33e1a6962d475ee0a994fd1f5e446a888.zip gdb-9a0910c33e1a6962d475ee0a994fd1f5e446a888.tar.gz gdb-9a0910c33e1a6962d475ee0a994fd1f5e446a888.tar.bz2 |
From Craig Silverstein: Add support for compressing .debug_str section.
Diffstat (limited to 'gold/options.cc')
-rw-r--r-- | gold/options.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc index fb79901..f5fc8da 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -376,6 +376,17 @@ options::Command_line_options::options[] = &Position_dependent_options::set_static_search), GENERAL_NOARG('\0', "Bsymbolic", N_("Bind defined symbols locally"), NULL, ONE_DASH, &General_options::set_symbolic), +#ifdef HAVE_ZLIB_H +# define ZLIB_STR ",zlib" +#else +# define ZLIB_STR "" +#endif + GENERAL_ARG('\0', "compress-debug-sections", + N_("Compress .debug_* sections in the output file " + "(default is none)"), + N_("--compress-debug-sections=[none" ZLIB_STR "]"), + TWO_DASHES, + &General_options::set_compress_debug_symbols), GENERAL_NOARG('\0', "demangle", N_("Demangle C++ symbols in log messages"), NULL, TWO_DASHES, &General_options::set_demangle), GENERAL_NOARG('\0', "no-demangle", @@ -525,6 +536,7 @@ General_options::General_options() strip_(STRIP_NONE), allow_shlib_undefined_(false), symbolic_(false), + compress_debug_sections_(NO_COMPRESSION), detect_odr_violations_(false), create_eh_frame_hdr_(false), rpath_(), |