aboutsummaryrefslogtreecommitdiff
path: root/gas/configure.ac
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 /gas/configure.ac
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 'gas/configure.ac')
-rw-r--r--gas/configure.ac23
1 files changed, 15 insertions, 8 deletions
diff --git a/gas/configure.ac b/gas/configure.ac
index b15da9a..278a7fb 100644
--- a/gas/configure.ac
+++ b/gas/configure.ac
@@ -64,6 +64,18 @@ if test x$ac_checking != x ; then
AC_DEFINE(ENABLE_CHECKING, 1, [Define if you want run-time sanity checks.])
fi
+# PR gas/19109
+# Decide the default method for compressing debug sections.
+ac_default_compressed_debug_sections=unset
+# Provide a configure time option to override our default.
+AC_ARG_ENABLE(compressed_debug_sections,
+[ --enable-compressed-debug-sections compress debug sections by default],
+[case "${enableval}" in
+ yes | all | gas) ac_default_compressed_debug_sections=yes ;;
+ no | none) ac_default_compressed_debug_sections=no ;;
+ *) ac_default_compressed_debug_sections=unset ;;
+esac])dnl
+
using_cgen=no
AM_BINUTILS_WARNINGS
@@ -536,14 +548,9 @@ changequote([,])dnl
done
-# For x86 Linux targets, default to compressing debug sections unless
-# configured otherwise.
-case x${enable_compressed_debug_sections}-${target_cpu_type}-${target_os} in
-x*gas*|xall*|x-i386-linux-gnu)
- AC_DEFINE(DEFAULT_FLAG_COMPRESS_DEBUG, 1,
- [Define if you want compressed debug sections by default.])
- ;;
-esac
+if test x$ac_default_compressed_debug_sections == xyes ; then
+ AC_DEFINE(DEFAULT_FLAG_COMPRESS_DEBUG, 1, [Define if you want compressed debug sections by default.])
+fi
# Turn on all targets if possible
if test ${all_targets} = "yes"; then