* section.c (bfd_section_init): Remove unnecessary initialisations.
[deliverable/binutils-gdb.git] / bfd / elf32-mips.c
index 63e6e023db0bff41496fffe62ff9e61c74f44d3f..a4007ef46854d20fd11b0f5bf082866d430b040c 100644 (file)
@@ -5177,7 +5177,7 @@ _bfd_mips_elf_final_link (abfd, info)
              if (p->type == bfd_indirect_link_order)
                p->u.indirect.section->flags &= ~SEC_HAS_CONTENTS;
            (*secpp)->link_order_head = NULL;
-           *secpp = (*secpp)->next;
+           bfd_section_list_remove (abfd, secpp);
            --abfd->section_count;
 
            break;
@@ -5547,7 +5547,7 @@ _bfd_mips_elf_final_link (abfd, info)
                   *secpp != o;
                   secpp = &(*secpp)->next)
                ;
-             *secpp = (*secpp)->next;
+             bfd_section_list_remove (abfd, secpp);
              --abfd->section_count;
 
              continue;
This page took 0.024779 seconds and 4 git commands to generate.