diff --git a/ld/ldlang.c b/ld/ldlang.c index b04ba113aaa..b7b988f5139 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -70,7 +70,6 @@ static struct obstack pt_obstack; static const char *entry_symbol_default = "start"; static bool map_head_is_link_order = false; static lang_output_section_statement_type *default_common_section; -static bool map_option_f; static bfd_vma print_dot; static lang_input_statement_type *first_file; static const char *current_target; @@ -9089,16 +9088,7 @@ lang_add_target (const char *name) void lang_add_map (const char *name) { - while (*name) - { - switch (*name) - { - case 'F': - map_option_f = true; - break; - } - name++; - } + (void)name; } void diff --git a/ld/mri.c b/ld/mri.c index 0d137377ce5..e72b34bc31e 100644 --- a/ld/mri.c +++ b/ld/mri.c @@ -45,7 +45,6 @@ struct section_name_struct { int ok_to_load; }; -static unsigned int symbol_truncate = 10000; static etree_type *base; /* Relocation base - or null */ static struct section_name_struct *order; @@ -312,5 +311,5 @@ mri_alignmod (const char *name, etree_type *exp) void mri_truncate (unsigned int exp) { - symbol_truncate = exp; + (void)exp; }