diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-08-01 01:03:46 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-08-01 01:03:46 +0000 |
commit | e65eb8b1c6dad97ae8315390356084dac7633e3f (patch) | |
tree | e40c06b14319c34cd0e1d6df6feb808be522ef3f /ld/ldlang.c | |
parent | 0cceaa9eb78800bb84e57ff515a9f3d0fc1c6d7f (diff) | |
download | binutils-redhat-e65eb8b1c6dad97ae8315390356084dac7633e3f.tar.gz |
Don't call compare_section in case of by_none
PR ld/14156
* ldlang.c (wild_sort): Don't call compare_section in case of
by_none.
* scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections.
* scripttempl/elf32msp430.sc: Likewise.
* scripttempl/elf32msp430_3.sc: Likewise.
* scripttempl/elfd10v.sc: Likewise.
* scripttempl/elfd30v.sc: Likewise.
* scripttempl/elfxtensa.sc: Likewise.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 5a4eef70ee..5327e1286c 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -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; } |