Fix assertion failure for xtensa linker.
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 2 Aug 2017 10:48:07 +0000 (11:48 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 2 Aug 2017 10:48:07 +0000 (11:48 +0100)
* emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
Only check for by_name sorting.

ld/ChangeLog
ld/emultempl/xtensaelf.em

index 9acf64efd7e6ac75290f248c2069c30c99a116bf..ff99df4f3cc291733378c9147990a99577767153 100644 (file)
@@ -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
index 1447d526a25bf48767a2fe43780a773eb910e59b..3827d91b62915d29b618356c9a760744e886571e 100644 (file)
@@ -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;