* section.c (_bfd_strip_section_from_output): Handle NULL
output_section.
This commit is contained in:
parent
0b4bdf775b
commit
2f484710e6
@ -1,3 +1,8 @@
|
|||||||
|
2001-06-02 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
|
* section.c (_bfd_strip_section_from_output): Handle NULL
|
||||||
|
output_section.
|
||||||
|
|
||||||
2001-06-02 H.J. Lu <hjl@gnu.org>
|
2001-06-02 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
|
* config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
|
||||||
|
@ -1224,6 +1224,11 @@ _bfd_strip_section_from_output (info, s)
|
|||||||
orders have not yet been set up. So why are we checking them? --
|
orders have not yet been set up. So why are we checking them? --
|
||||||
Ian */
|
Ian */
|
||||||
os = s->output_section;
|
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)
|
for (p = os->link_order_head, pp = NULL; p != NULL; pp = p, p = p->next)
|
||||||
if (p->type == bfd_indirect_link_order
|
if (p->type == bfd_indirect_link_order
|
||||||
&& p->u.indirect.section == s)
|
&& p->u.indirect.section == s)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user