This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Compress debug sections for Linux/x86 by default
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: binutils at sourceware dot org
- Date: Sun, 14 Dec 2014 06:43:17 -0800
- Subject: PATCH: Compress debug sections for Linux/x86 by default
- Authentication-results: sourceware.org; auth=none
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