This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Fix assertion failure for xtensa linker.
- From: Nick Clifton <nickc at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 2 Aug 2017 10:48:56 -0000
- Subject: [binutils-gdb] Fix assertion failure for xtensa linker.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=73d5923e480944e2d66bde8c59f4dff298ec57e3
commit 73d5923e480944e2d66bde8c59f4dff298ec57e3
Author: Max Filippov <jcmvbkbc@gmail.com>
Date: Wed Aug 2 11:48:07 2017 +0100
Fix assertion failure for xtensa linker.
* emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
Only check for by_name sorting.
Diff:
---
ld/ChangeLog | 5 +++++
ld/emultempl/xtensaelf.em | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 9acf64e..ff99df4 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2017-08-02 Max Filippov <jcmvbkbc@gmail.com>
+
+ * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
+ Only check for by_name sorting.
+
2017-08-02 Nick Clifton <nickc@redhat.com>
PR 21884
diff --git a/ld/emultempl/xtensaelf.em b/ld/emultempl/xtensaelf.em
index 1447d52..3827d91 100644
--- a/ld/emultempl/xtensaelf.em
+++ b/ld/emultempl/xtensaelf.em
@@ -1432,7 +1432,7 @@ xtensa_wild_group_interleave_callback (lang_statement_union_type *statement)
struct wildcard_list *l;
for (l = w->section_list; l != NULL; l = l->next)
{
- if (l->spec.sorted != none)
+ if (l->spec.sorted == by_name)
{
no_reorder = TRUE;
break;