diff options
author | Nick Clifton <nickc@redhat.com> | 2015-10-21 13:12:19 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-10-21 13:15:39 +0100 |
commit | 6c3bc0f82c625d425b09c01f96b64946abe4118e (patch) | |
tree | 7eb4b78f4c653b8034c6bd59fb8edfdfde301b54 /ld/configure | |
parent | 4cd98a1920446165eaf0a5d5e71f86133e92954d (diff) | |
download | gdb-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/configure')
-rwxr-xr-x | ld/configure | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/ld/configure b/ld/configure index 1249852..c068f6f 100755 --- a/ld/configure +++ b/ld/configure @@ -788,6 +788,7 @@ enable_64_bit_bfd with_sysroot enable_gold enable_got +enable_compressed_debug_sections enable_werror enable_build_warnings enable_nls @@ -1444,6 +1445,7 @@ Optional Features: --enable-gold[=ARG] build gold [ARG={default,yes,no}] --enable-got=<type> GOT handling scheme (target, single, negative, multigot) + --enable-compressed-debug-sections compress debug sections by default --enable-werror treat compile warnings as errors --enable-build-warnings enable build-time compiler warnings --disable-nls do not use Native Language Support @@ -11713,7 +11715,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11716 "configure" +#line 11718 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11819,7 +11821,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11822 "configure" +#line 11824 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -15521,6 +15523,19 @@ $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;; esac +# 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. +# Check whether --enable-compressed_debug_sections was given. +if test "${enable_compressed_debug_sections+set}" = set; then : + enableval=$enable_compressed_debug_sections; case "${enableval}" in + yes | all | ld) ac_default_compressed_debug_sections=yes ;; + no | none) ac_default_compressed_debug_sections=no ;; + *) ac_default_compressed_debug_sections=unset ;; +esac +fi + # Set the 'development' global. . $srcdir/../bfd/development.sh @@ -17118,6 +17133,12 @@ do fi done +if test x$ac_default_compressed_debug_sections == xyes ; then + +$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h + +fi + |