]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Default to --enable-compressed-debug-sections=gas for Linux/x86
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 29 Jun 2016 16:29:39 +0000 (09:29 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 29 Jun 2016 16:32:34 +0000 (09:32 -0700)
--enable-compressed-debug-sections=gas added to binutils 2.26.  Make it
default for Linux/x86 targets in 2.27.

* NEWS: Mention --enable-compressed-debug-sections=gas is the
default for Linux/x86 targets.
* configure.tgt (ac_default_compressed_debug_sections): Default
to yes for Linux/x86 targets.

gas/ChangeLog
gas/NEWS
gas/configure.tgt

index 4e94fd976a31f2a308ff80cee9760480f6d17309..797e8a1829fc8f7f2f1c77924af68fdb77405f0a 100644 (file)
@@ -1,3 +1,10 @@
+2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * NEWS: Mention --enable-compressed-debug-sections=gas is the
+       default for Linux/x86 targets.
+       * configure.tgt (ac_default_compressed_debug_sections): Default
+       to yes for Linux/x86 targets.
+
 2016-06-29  Maciej W. Rozycki  <macro@imgtec.com>
 
        * write.c: Remove "libbfd.h" inclusion.
index 08807f18f1615c5ebf1413bac6a997bb9bdc3b95..f5708a2554c3a141d738899f3414c0fcc85d219b 100644 (file)
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -1,4 +1,6 @@
 -*- text -*-
+* Default to --enable-compressed-debug-sections=gas for Linux/x86 targets.
+
 * Add --no-pad-sections to stop the assembler from padding the end of output
   sections up to their alignment boundary.
 
index cda0e26e02cf45e8d0143d1951ba64ef7213bcf3..e2df65957ba9ad4393f4e8006d1cc88cde270b85 100644 (file)
@@ -502,3 +502,12 @@ if test $bfd_gas != yes; then
   echo This target is no longer supported in gas
   exit 1
 fi
+
+case ${cpu_type}-${fmt}-${os} in
+i386-elf-linux*)
+  # Default to compress DWARF debug sections for Linux/x86.
+  if test ${ac_default_compressed_debug_sections} = unset; then
+    ac_default_compressed_debug_sections=yes
+  fi
+  ;;
+esac