This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Default to --enable-compressed-debug-sections=gas for Linux/x86


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4e3e1fdf327b225b28b754d96a4d592fb3a23df0

commit 4e3e1fdf327b225b28b754d96a4d592fb3a23df0
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jun 29 09:29:39 2016 -0700

    Default to --enable-compressed-debug-sections=gas for Linux/x86
    
    --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.

Diff:
---
 gas/ChangeLog     | 7 +++++++
 gas/NEWS          | 2 ++
 gas/configure.tgt | 9 +++++++++
 3 files changed, 18 insertions(+)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4e94fd9..797e8a1 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/NEWS b/gas/NEWS
index 08807f1..f5708a2 100644
--- 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.
 
diff --git a/gas/configure.tgt b/gas/configure.tgt
index cda0e26..e2df659 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]