* linker.c (_bfd_generic_link_output_symbols): Also check if
	the output section of an input section has been removed from
	the output file.

	* section.c (bfd_section_list_remove): Clear the next field
	of the removed section.
	(bfd_section_removed_from_list): New.
	* bfd-in2.h: Regenerated.
This commit is contained in:
H.J. Lu
2005-04-11 22:21:23 +00:00
parent bd695bcc90
commit ab82c5b97f
4 changed files with 27 additions and 6 deletions

View File

@@ -546,6 +546,8 @@ CODE_FRAGMENT
. *_ps = _s->next; \
. if (_s->next == NULL) \
. (ABFD)->section_tail = _ps; \
. else \
. _s->next = NULL; \
. } \
. while (0)
.#define bfd_section_list_insert(ABFD, PS, S) \
@@ -559,6 +561,8 @@ CODE_FRAGMENT
. (ABFD)->section_tail = &_s->next; \
. } \
. while (0)
.#define bfd_section_removed_from_list(ABFD, S) \
. ((S)->next == NULL && &(S)->next != (ABFD)->section_tail)
.
*/