Don't call compare_section in case of by_none
[deliverable/binutils-gdb.git] / ld / ldlang.c
index 5a4eef70ee58d7991dfc7d8c3e5edd86222ef0bd..5327e1286c1f4eb23da3b356cd26b36955d44f05 100644 (file)
@@ -2462,7 +2462,9 @@ wild_sort (lang_wild_statement_type *wild,
       /* Here either the files are not sorted by name, or we are
         looking at the sections for this file.  */
 
-      if (sec != NULL && sec->spec.sorted != none)
+      if (sec != NULL
+         && sec->spec.sorted != none
+         && sec->spec.sorted != by_none)
        if (compare_section (sec->spec.sorted, section, ls->section) < 0)
          break;
     }
This page took 0.022909 seconds and 4 git commands to generate.