* section.c (bfd_section_list_remove): Don't clear s->next.
commit3767014261d509426ee246922a8210b86c3520ef
authorAlan Modra <amodra@bigpond.net.au>
Tue, 3 May 2005 17:05:51 +0000 (3 17:05 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Tue, 3 May 2005 17:05:51 +0000 (3 17:05 +0000)
tree1343c81ccc72b2f6a3623e78fbe870da92e5ef8d
parentdd558dcf48e63f7a4f523df3cbe7ffd466d0dcfd
* section.c (bfd_section_list_remove): Don't clear s->next.
(bfd_section_list_append): Always init s->prev.
(bfd_section_list_prepend): Define.
(bfd_section_list_insert_after): Minor optimization.
(bfd_section_removed_from_list): Rewrite.
* elf.c (assign_section_numbers): Simplify list traversal now that
bfd_section_list_remove doesn't destroy removed section next ptr.
* sunos.c (sunos_add_dynamic_symbols): Likewise.
* elfxx-ia64.c (elfNN_ia64_object_p): Use bfd_section_list_prepend.
* xcofflink.c (_bfd_xcoff_bfd_final_link): Simplify list traversal.
* bfd-in2.h: Regenerate.
bfd/ChangeLog
bfd/bfd-in2.h
bfd/elf.c
bfd/elfxx-ia64.c
bfd/section.c
bfd/sunos.c
bfd/xcofflink.c