BFD/ELF: Correct a `remove' global shadowing error for pre-4.8 GCC
[deliverable/binutils-gdb.git] / bfd / elflink.c
index aabbf7f667b9bdac39dc6128be6e5c8527c2b075..b24fb95848d6990a2496600d910a400b2648a58c 100644 (file)
@@ -11719,7 +11719,7 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info)
   std_attrs_section = get_elf_backend_data (abfd)->obj_attrs_section;
   for (o = abfd->sections; o != NULL; o = o->next)
     {
-      bfd_boolean remove = FALSE;
+      bfd_boolean remove_section = FALSE;
 
       if ((std_attrs_section && strcmp (o->name, std_attrs_section) == 0)
          || strcmp (o->name, ".gnu.attributes") == 0)
@@ -11743,14 +11743,14 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info)
          if (attr_size)
            attr_section = o;
          else
-           remove = TRUE;
+           remove_section = TRUE;
        }
       else if ((o->flags & SEC_GROUP) != 0 && o->size == 0)
        {
          /* Remove empty group section from linker output.  */
-         remove = TRUE;
+         remove_section = TRUE;
        }
-      if (remove)
+      if (remove_section)
        {
          o->flags |= SEC_EXCLUDE;
          bfd_section_list_remove (abfd, o);
This page took 0.027958 seconds and 4 git commands to generate.