aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ldlang.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index c93b921..7ef05f5 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-09 Nick Clifton <nickc@redhat.com>
+
+ * ldlang.c (wild_sort): Remove unused variable section_name.
+
2010-04-07 Alan Modra <amodra@gmail.com>
* configure: Regenerate.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 09bfd26..5ba4360 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -2325,14 +2325,12 @@ wild_sort (lang_wild_statement_type *wild,
lang_input_statement_type *file,
asection *section)
{
- const char *section_name;
lang_statement_union_type *l;
if (!wild->filenames_sorted
&& (sec == NULL || sec->spec.sorted == none))
return NULL;
- section_name = bfd_get_section_name (file->the_bfd, section);
for (l = wild->children.head; l != NULL; l = l->header.next)
{
lang_input_section_type *ls;