mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
2005-04-11 H.J. Lu <hongjiu.lu@intel.com>
* 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:
@@ -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)
|
||||
.
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user