aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-08-01 01:07:38 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-08-01 01:07:38 +0000
commitc2821c3e5548175cadc278dc860b04f9324c9baa (patch)
tree806086acd36f7e4920ada2cdb0a488b4a078b541 /ld
parentb2e4da5a836b3d5246dc2fa183e18c1f63232490 (diff)
downloadgdb-c2821c3e5548175cadc278dc860b04f9324c9baa.zip
gdb-c2821c3e5548175cadc278dc860b04f9324c9baa.tar.gz
gdb-c2821c3e5548175cadc278dc860b04f9324c9baa.tar.bz2
Properly handle by_none
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog3
-rw-r--r--ld/ldlang.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 91e2b83..c066fef 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,8 +1,7 @@
2012-07-31 H.J. Lu <hongjiu.lu@intel.com>
PR ld/14156
- * ldlang.c (wild_sort): Don't call compare_section in case of
- by_none.
+ * ldlang.c (wild_sort): Properly handle by_none.
* scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections.
* scripttempl/elf32msp430.sc: Likewise.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 5327e12..0f5c91a3 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -3512,8 +3512,6 @@ update_wild_statements (lang_statement_union_type *s)
if (sort_section == by_name)
sec->spec.sorted = by_alignment_name;
break;
- case by_none:
- sec->spec.sorted = none;
default:
break;
}