aboutsummaryrefslogtreecommitdiff
path: root/bfd/section.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2001-06-02 19:05:34 +0000
committerHans-Peter Nilsson <hp@axis.com>2001-06-02 19:05:34 +0000
commit2f484710e69f6a8f20f9cc156ce419a716cfe4f3 (patch)
tree7ce88b37df598baed6538001e80edb9ea621c71b /bfd/section.c
parent0b4bdf775baa764bc92763733b18991d9be5b712 (diff)
downloadgdb-2f484710e69f6a8f20f9cc156ce419a716cfe4f3.zip
gdb-2f484710e69f6a8f20f9cc156ce419a716cfe4f3.tar.gz
gdb-2f484710e69f6a8f20f9cc156ce419a716cfe4f3.tar.bz2
* section.c (_bfd_strip_section_from_output): Handle NULL
output_section.
Diffstat (limited to 'bfd/section.c')
-rw-r--r--bfd/section.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/section.c b/bfd/section.c
index ad90462..78ab0cb 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)