aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-04-11 22:21:23 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-04-11 22:21:23 +0000
commitab82c5b97fcf97e081a3ea5e2291882963fecdae (patch)
tree2e817f3b505af152d6d397d303f61ee9e673a927 /bfd/bfd-in2.h
parentbd695bcc90bf296d67a85cd49c6fe1879715e04e (diff)
downloadgdb-ab82c5b97fcf97e081a3ea5e2291882963fecdae.zip
gdb-ab82c5b97fcf97e081a3ea5e2291882963fecdae.tar.gz
gdb-ab82c5b97fcf97e081a3ea5e2291882963fecdae.tar.bz2
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.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r--bfd/bfd-in2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 6266420..bed224d 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1445,6 +1445,8 @@ extern const struct bfd_symbol * const bfd_ind_symbol;
*_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) \
@@ -1458,6 +1460,8 @@ extern const struct bfd_symbol * const bfd_ind_symbol;
(ABFD)->section_tail = &_s->next; \
} \
while (0)
+#define bfd_section_removed_from_list(ABFD, S) \
+ ((S)->next == NULL && &(S)->next != (ABFD)->section_tail)
void bfd_section_list_clear (bfd *);