* [committed, PATCH] Pass --compress-debug-sections=none to ld
@ 2016-04-27 12:29 H.J. Lu
2016-04-27 22:24 ` Alan Modra
0 siblings, 1 reply; 3+ messages in thread
From: H.J. Lu @ 2016-04-27 12:29 UTC (permalink / raw)
To: binutils
Since ld may generate compressed debug sections by default, pass
--compress-debug-sections=none to ld to avoid compressed debug
sections.
* ld-elf/compressed1b.d: Pass --compress-debug-sections=none
to ld.
* ld-elf/compressed1c.d: Likewise.
---
ld/ChangeLog | 6 ++++++
ld/testsuite/ld-elf/compressed1b.d | 2 +-
ld/testsuite/ld-elf/compressed1c.d | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 21e7c77..62db170 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+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-27 Alan Modra <amodra@gmail.com>
PR target/19985
diff --git a/ld/testsuite/ld-elf/compressed1b.d b/ld/testsuite/ld-elf/compressed1b.d
index 83dc60f..04973a4 100644
--- a/ld/testsuite/ld-elf/compressed1b.d
+++ b/ld/testsuite/ld-elf/compressed1b.d
@@ -1,6 +1,6 @@
#source: compress1.s
#as: --compress-debug-sections=zlib-gabi
-#ld: -r
+#ld: -r --compress-debug-sections=none
#readelf: -t
#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*
--
2.5.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [committed, PATCH] Pass --compress-debug-sections=none to ld
2016-04-27 12:29 [committed, PATCH] Pass --compress-debug-sections=none to ld H.J. Lu
@ 2016-04-27 22:24 ` Alan Modra
2016-04-27 22:55 ` H.J. Lu
0 siblings, 1 reply; 3+ messages in thread
From: Alan Modra @ 2016-04-27 22:24 UTC (permalink / raw)
To: H.J. Lu; +Cc: binutils
On Wed, Apr 27, 2016 at 05:28:46AM -0700, H.J. Lu wrote:
> Since ld may generate compressed debug sections by default, pass
> --compress-debug-sections=none to ld to avoid compressed debug
> sections.
>
> * ld-elf/compressed1b.d: Pass --compress-debug-sections=none
> to ld.
> * ld-elf/compressed1c.d: Likewise.
This caused
d30v-elf +FAIL: ld-elf/compressed1b
dlx-elf +FAIL: ld-elf/compressed1b
fr30-elf +FAIL: ld-elf/compressed1b
frv-elf +FAIL: ld-elf/compressed1b
i860-stardent-elf +FAIL: ld-elf/compressed1b
i960-elf +FAIL: ld-elf/compressed1b
iq2000-elf +FAIL: ld-elf/compressed1b
mn10200-elf +FAIL: ld-elf/compressed1b
moxie-elf +FAIL: ld-elf/compressed1b
ms1-elf +FAIL: ld-elf/compressed1b
msp430-elf +FAIL: ld-elf/compressed1b
pj-elf +FAIL: ld-elf/compressed1b
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [committed, PATCH] Pass --compress-debug-sections=none to ld
2016-04-27 22:24 ` Alan Modra
@ 2016-04-27 22:55 ` H.J. Lu
0 siblings, 0 replies; 3+ messages in thread
From: H.J. Lu @ 2016-04-27 22:55 UTC (permalink / raw)
To: Alan Modra; +Cc: Binutils
[-- Attachment #1: Type: text/plain, Size: 960 bytes --]
On Wed, Apr 27, 2016 at 3:24 PM, Alan Modra <amodra@gmail.com> wrote:
> On Wed, Apr 27, 2016 at 05:28:46AM -0700, H.J. Lu wrote:
>> Since ld may generate compressed debug sections by default, pass
>> --compress-debug-sections=none to ld to avoid compressed debug
>> sections.
>>
>> * ld-elf/compressed1b.d: Pass --compress-debug-sections=none
>> to ld.
>> * ld-elf/compressed1c.d: Likewise.
>
> This caused
> d30v-elf +FAIL: ld-elf/compressed1b
> dlx-elf +FAIL: ld-elf/compressed1b
> fr30-elf +FAIL: ld-elf/compressed1b
> frv-elf +FAIL: ld-elf/compressed1b
> i860-stardent-elf +FAIL: ld-elf/compressed1b
> i960-elf +FAIL: ld-elf/compressed1b
> iq2000-elf +FAIL: ld-elf/compressed1b
> mn10200-elf +FAIL: ld-elf/compressed1b
> moxie-elf +FAIL: ld-elf/compressed1b
> ms1-elf +FAIL: ld-elf/compressed1b
> msp430-elf +FAIL: ld-elf/compressed1b
> pj-elf +FAIL: ld-elf/compressed1b
I checked in this fix. Sorry for breakage.
--
H.J.
[-- Attachment #2: 0001-Limit-ld-elf-compressed1b.d-to-Linux-GNU-targets.patch --]
[-- Type: text/x-patch, Size: 1354 bytes --]
From 83a471c3a112bfce3b13085e51209c826be8257d Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl.tools@gmail.com>
Date: Wed, 27 Apr 2016 15:51:29 -0700
Subject: [PATCH] Limit ld-elf/compressed1b.d to Linux/GNU targets
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.
* testsuite/ld-elf/compressed1b.d: Only run for Linux/GNU targets.
---
ld/ChangeLog | 4 ++++
ld/testsuite/ld-elf/compressed1b.d | 1 +
2 files changed, 5 insertions(+)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 379a214..c4ded92 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,9 @@
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>
+
PR ld/20006
* testsuite/ld-elfvsb/elfvsb.exp (COMPRESS_LDFLAG): New.
(visibility_run): Pass COMPRESS_LDFLAG to visibility_test on
diff --git a/ld/testsuite/ld-elf/compressed1b.d b/ld/testsuite/ld-elf/compressed1b.d
index 04973a4..34dfe8e 100644
--- a/ld/testsuite/ld-elf/compressed1b.d
+++ b/ld/testsuite/ld-elf/compressed1b.d
@@ -2,6 +2,7 @@
#as: --compress-debug-sections=zlib-gabi
#ld: -r --compress-debug-sections=none
#readelf: -t
+#target: *-*-linux* *-*-gnu*
#failif
#...
--
2.5.5
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-04-27 22:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-27 12:29 [committed, PATCH] Pass --compress-debug-sections=none to ld H.J. Lu
2016-04-27 22:24 ` Alan Modra
2016-04-27 22:55 ` H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).