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]

Re: [committed, PATCH] Pass --compress-debug-sections=none to ld


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.
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


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