[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/19109] Cannot configure default flag_compress_debug
From: |
nickc at redhat dot com |
Subject: |
[Bug gas/19109] Cannot configure default flag_compress_debug |
Date: |
Mon, 19 Oct 2015 11:02:30 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19109
--- Comment #20 from Nick Clifton <nickc at redhat dot com> ---
Right - I have checked my patch in. H.J. - if you add a patch like this to
your sources then x86/x86_64 linux targets will again default to compressing
debug sections:
diff --git a/gas/configure.ac b/gas/configure.ac
index aa6bb1d..0394eda 100644
--- a/gas/configure.ac
+++ b/gas/configure.ac
@@ -457,6 +469,15 @@ changequote([,])dnl
if test $this_target = $target ; then
AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}", [Default architecture.])
fi
+
+ # For x86 Linux targets default to compressing
+ # debug sections unless configured otherwise.
+ cds=${ac_default_compressed_debug_sections}-${cpu_type}-${target_os}
+ case $cds in
+ unset-i386-linux-*)
+ ac_default_compressed_debug_sections=yes
+ ;;
+ esac
;;
rl78)
Once 2.26 is released we can add code like this for the other Linux targets as
well.
As far as the linker is concerned, I guess that the best thing to would be to
have the same configure option work it too. (Currently this does not happen -
the option only affects the assembler's default). Aside - is there any reason
why someone would want the assembler and linker to behave differently ? Ie
have one produce compressed debug sections, but the other not ?
My plan is that once 2.26 is out, and we flip the default for Linux targets, we
contact the binutils maintainers of as many distributions as we can find and
let them know about the change. We can also offer help in migrating tools to
support the new default, and suggestions as to how the new feature can be
tested and evaluated.
Cheers
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gas/19109] Cannot configure default flag_compress_debug, (continued)
- [Bug gas/19109] Cannot configure default flag_compress_debug, joseph at codesourcery dot com, 2015/10/12
- [Bug gas/19109] Cannot configure default flag_compress_debug, mjw at redhat dot com, 2015/10/13
- [Bug gas/19109] Cannot configure default flag_compress_debug, nickc at redhat dot com, 2015/10/13
- [Bug gas/19109] Cannot configure default flag_compress_debug, hjl.tools at gmail dot com, 2015/10/13
- [Bug gas/19109] Cannot configure default flag_compress_debug, nickc at redhat dot com, 2015/10/13
- [Bug gas/19109] Cannot configure default flag_compress_debug, hjl.tools at gmail dot com, 2015/10/13
- [Bug gas/19109] Cannot configure default flag_compress_debug, mjw at redhat dot com, 2015/10/14
- [Bug gas/19109] Cannot configure default flag_compress_debug, nickc at redhat dot com, 2015/10/15
- [Bug gas/19109] Cannot configure default flag_compress_debug, cvs-commit at gcc dot gnu.org, 2015/10/19
- [Bug gas/19109] Cannot configure default flag_compress_debug, hjl.tools at gmail dot com, 2015/10/19
- [Bug gas/19109] Cannot configure default flag_compress_debug,
nickc at redhat dot com <=
- [Bug gas/19109] Cannot configure default flag_compress_debug, hjl.tools at gmail dot com, 2015/10/19
- [Bug gas/19109] Cannot configure default flag_compress_debug, nickc at redhat dot com, 2015/10/19
- [Bug gas/19109] Cannot configure default flag_compress_debug, hjl.tools at gmail dot com, 2015/10/19
- [Bug gas/19109] Cannot configure default flag_compress_debug, hjl.tools at gmail dot com, 2015/10/19
- [Bug gas/19109] Cannot configure default flag_compress_debug, hjl.tools at gmail dot com, 2015/10/19
- [Bug gas/19109] Cannot configure default flag_compress_debug, nickc at redhat dot com, 2015/10/20
- [Bug gas/19109] Cannot configure default flag_compress_debug, hjl.tools at gmail dot com, 2015/10/20
- [Bug gas/19109] Cannot configure default flag_compress_debug, nickc at redhat dot com, 2015/10/20
- [Bug gas/19109] Cannot configure default flag_compress_debug, cvs-commit at gcc dot gnu.org, 2015/10/20