aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-10-21 13:12:19 +0100
committerNick Clifton <nickc@redhat.com>2015-10-21 13:15:39 +0100
commit6c3bc0f82c625d425b09c01f96b64946abe4118e (patch)
tree7eb4b78f4c653b8034c6bd59fb8edfdfde301b54 /ld/lexsup.c
parent4cd98a1920446165eaf0a5d5e71f86133e92954d (diff)
downloadgdb-6c3bc0f82c625d425b09c01f96b64946abe4118e.zip
gdb-6c3bc0f82c625d425b09c01f96b64946abe4118e.tar.gz
gdb-6c3bc0f82c625d425b09c01f96b64946abe4118e.tar.bz2
Reset x86 Linux targets to not compressing debug sections by default. Enable compression of debug sections by default in the linker, if so configured.
PR gas/19109 . * configure.ac: Note the 'none' is an acceptable argument to --enable-compressed-debug-sections. * configure: Regenerate. gas * configure.ac: Restore --enable-compressed-debug-sections. Do not enable compressed debug sections by default for x86 Linux targets. * configure: Regenerate. ld * configure.ac: Add --enable-compressed-debug-sections. * configure: Regenerate. * config.in: Regenerate. * ld.texinfo: Document how to determine the default action for debug sections. * ldmain.c (main): If DEFAULT_FLAG_COMPRESS_DEBUG is defined then set the compress_debug field of the link_info structure to zlib-gabi. * lexsup.c (elf_static_list_options): Output the default setting for the --compress-debug-sections option. * NEWS: Mention the new configure option.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r--ld/lexsup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index fdd39a7..1dcbf4c 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -1756,6 +1756,13 @@ elf_static_list_options (FILE *file)
fprintf (file, _("\
--compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi]\n\
Compress DWARF debug sections using zlib\n"));
+#ifdef DEFAULT_FLAG_COMPRESS_DEBUG
+ fprintf (file, _("\
+ Default: zlib-gabi\n"));
+#else
+ fprintf (file, _("\
+ Default: none\n"));
+#endif
fprintf (file, _("\
-z common-page-size=SIZE Set common page size to SIZE\n"));
fprintf (file, _("\