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: PR21529, internal error in linker.c


On Mon, Jun 05, 2017 at 02:55:53PM -0700, H.J. Lu wrote:
> I checked in this to add a testcase.

Thanks, but various targets fail this testcase due to ld not
supporting binary output.  With the following, we're left with:

avr-elf  +FAIL: ld-unique/pr21529
iq2000-elf  +FAIL: ld-unique/pr21529
mips64-linux  +FAIL: ld-unique/pr21529
mipsel-linux-gnu  +FAIL: ld-unique/pr21529
mipsisa32el-linux  +FAIL: ld-unique/pr21529
mips-linux  +FAIL: ld-unique/pr21529
mipstx39-elf  +FAIL: ld-unique/pr21529
rx-elf  +FAIL: ld-unique/pr21529

The avr and mips fails are segfaults due to accessing ELF data
structures that aren't present when linking to binary.  The iq2000 and
rx fails are timeouts when dumping an enormous binary output.  All of
the fails I see are real bugs so shouldn't be hidden by xfail.  I'm
leaving it to the target maintainers to fix..

	* testsuite/ld-unique/pr21529.d: xfail aarch64, arm, hppa, ia64,
	nds32, and score.  Match any output.

diff --git a/ld/ChangeLog b/ld/ChangeLog
index cb30ebf..36fc28b 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2017-06-07  Alan Modra  <amodra@gmail.com>
+
+	* testsuite/ld-unique/pr21529.d: xfail aarch64, arm, hppa, ia64,
+	nds32, and score.  Match any output.
+
 2017-06-06  Andrew Burgess  <andrew.burgess@embecosm.com>
 
 	* ld.h (struct args_type): Fix typo in comment.
diff --git a/ld/testsuite/ld-unique/pr21529.d b/ld/testsuite/ld-unique/pr21529.d
index 9a75a6a..1bcd4fe 100644
--- a/ld/testsuite/ld-unique/pr21529.d
+++ b/ld/testsuite/ld-unique/pr21529.d
@@ -1,8 +1,5 @@
 #ld: --oformat binary -e main
 #objdump: -s -b binary
+#xfail: aarch64*-*-* arm*-*-* hppa-*-* ia64-*-* nds32*-*-* score-*-*
 
-.*:     file format binary
-
-Contents of section \.data:
- 0000 .*
 #pass

-- 
Alan Modra
Australia Development Lab, IBM


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