This is the mail archive of the binutils@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]

PATCH: Compress debug sections for Linux/x86 by default


I checked in this patch to compress debug sections for Linux/x86 by
default.

H.J.
---
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 8ab2319..27da2cc 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* config/tc-i386.c (flag_compress_debug): Default to compress
+	debug sections for Linux.
+
 2014-12-12  Alan Modra  <amodra@gmail.com>
 
 	* config/tc-ppc.h (md_reg_eh_frame_to_debug_frame): Match current
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index b6ac902..0a05c2c 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -33,6 +33,11 @@
 #include "elf/x86-64.h"
 #include "opcodes/i386-init.h"
 
+#ifdef TE_LINUX
+/* Default to compress debug sections for Linux.  */
+int flag_compress_debug = 1;
+#endif
+
 #ifndef REGISTER_WARNINGS
 #define REGISTER_WARNINGS 1
 #endif


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