This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb/binutils-2_26-branch] Pass --compress-debug-sections=none to ld
- From: H.J.Lu <hjl at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 30 Apr 2016 12:38:25 -0000
- Subject: [binutils-gdb/binutils-2_26-branch] Pass --compress-debug-sections=none to ld
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8c9e2af6c6556be31db02c5079a834283ae379e0
commit 8c9e2af6c6556be31db02c5079a834283ae379e0
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 27 05:25:18 2016 -0700
Pass --compress-debug-sections=none to ld
Since ld may generate compressed debug sections by default, pass
--compress-debug-sections=none to ld to avoid compressed debug
sections.
Since not all ELF targets use the elf.em emulation to support ld option:
--compress-debug-sections=zlib-gnu, limit compressed1b.d to Linux/GNU
targets.
Backport from master
* testsuite/ld-elf/compressed1b.d: Pass
--compress-debug-sections=none to ld.
* testsuite/ld-elf/compressed1c.d: Likewise.
Diff:
---
ld/ChangeLog | 13 +++++++++++++
ld/testsuite/ld-elf/compressed1b.d | 3 ++-
ld/testsuite/ld-elf/compressed1c.d | 2 +-
3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 6ed2e24..c3eeded 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,16 @@
+2016-04-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ Backport from master
+ 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-elf/compressed1b.d: Only run for Linux/GNU targets.
+
+ 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ld-elf/compressed1b.d: Pass --compress-debug-sections=none
+ to ld.
+ * ld-elf/compressed1c.d: Likewise.
+
2016-04-04 H.J. Lu <hongjiu.lu@intel.com>
Backport from master
diff --git a/ld/testsuite/ld-elf/compressed1b.d b/ld/testsuite/ld-elf/compressed1b.d
index 83dc60f..34dfe8e 100644
--- a/ld/testsuite/ld-elf/compressed1b.d
+++ b/ld/testsuite/ld-elf/compressed1b.d
@@ -1,7 +1,8 @@
#source: compress1.s
#as: --compress-debug-sections=zlib-gabi
-#ld: -r
+#ld: -r --compress-debug-sections=none
#readelf: -t
+#target: *-*-linux* *-*-gnu*
#failif
#...
diff --git a/ld/testsuite/ld-elf/compressed1c.d b/ld/testsuite/ld-elf/compressed1c.d
index 64f75be..29e91da 100644
--- a/ld/testsuite/ld-elf/compressed1c.d
+++ b/ld/testsuite/ld-elf/compressed1c.d
@@ -1,6 +1,6 @@
#source: compress1.s
#as: --compress-debug-sections=zlib-gabi
-#ld: -shared
+#ld: -shared --compress-debug-sections=none
#readelf: -t
#target: *-*-linux* *-*-gnu*