This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 2/7] ld: Remove unused file static variable
There should be no user visible change after this commit.
ld/ChangeLog:
* ldlang.c (placed_commons): Delete.
(lang_add_wild): No longer set placed_commons.
---
ld/ChangeLog | 5 +++++
ld/ldlang.c | 4 ----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 726bc8e3846..b68204903e4 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -61,7 +61,6 @@ static struct obstack map_obstack;
#define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free
static const char *entry_symbol_default = "start";
-static bfd_boolean placed_commons = FALSE;
static bfd_boolean map_head_is_link_order = FALSE;
static lang_output_section_statement_type *default_common_section;
static bfd_boolean map_option_f;
@@ -7238,9 +7237,6 @@ lang_add_wild (struct wildcard_spec *filespec,
curr != NULL;
section_list = curr, curr = next)
{
- if (curr->spec.name != NULL && strcmp (curr->spec.name, "COMMON") == 0)
- placed_commons = TRUE;
-
next = curr->next;
curr->next = section_list;
}
--
2.13.3