diff options
author | H.J. Lu <hjl@lucon.org> | 2005-04-11 22:21:23 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2005-04-11 22:21:23 +0000 |
commit | 638747bcb831c779e5be91b4b025c6d604fa35a5 (patch) | |
tree | db2cb651d17a390b8136a6483d5709aa3d03bf7a /bfd/section.c | |
parent | 93386b856245331c56a9f52d907828b92993a4f6 (diff) | |
download | gdb-638747bcb831c779e5be91b4b025c6d604fa35a5.tar.gz |
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/section.c')
-rw-r--r-- | bfd/section.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/section.c b/bfd/section.c index 49a87035b74..914d1825007 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -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) . */ |