From: Hans-Peter Nilsson Date: Sat, 2 Jun 2001 19:05:34 +0000 (+0000) Subject: * section.c (_bfd_strip_section_from_output): Handle NULL X-Git-Tag: dberlin-typesystem-branchpoint~381 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f484710e69f6a8f20f9cc156ce419a716cfe4f3;p=thirdparty%2Fbinutils-gdb.git * section.c (_bfd_strip_section_from_output): Handle NULL output_section. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9818471c680..bbaa444f072 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2001-06-02 Hans-Peter Nilsson + + * section.c (_bfd_strip_section_from_output): Handle NULL + output_section. + 2001-06-02 H.J. Lu * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add diff --git a/bfd/section.c b/bfd/section.c index ad9046285e6..78ab0cb4830 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -1224,6 +1224,11 @@ _bfd_strip_section_from_output (info, s) orders have not yet been set up. So why are we checking them? -- Ian */ os = s->output_section; + + /* Handle a section that wasn't output. */ + if (os == NULL) + return; + for (p = os->link_order_head, pp = NULL; p != NULL; pp = p, p = p->next) if (p->type == bfd_indirect_link_order && p->u.indirect.section == s)