From 5edd166e7df6843077b800b2c55a97ea89ce6dcd Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 24 Jul 2008 21:23:09 +0000 Subject: PR 6048 * ehframe.cc (Eh_frame::add_ehframe_input_section): Check whether this->eh_frame_hdr_ is NULL before using it. --- gold/ehframe.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gold/ehframe.cc') diff --git a/gold/ehframe.cc b/gold/ehframe.cc index 5061f80..333e665 100644 --- a/gold/ehframe.cc +++ b/gold/ehframe.cc @@ -557,7 +557,8 @@ Eh_frame::add_ehframe_input_section( reloc_type, pcontents, contents_len, &new_cies)) { - this->eh_frame_hdr_->found_unrecognized_eh_frame_section(); + if (this->eh_frame_hdr_ != NULL) + this->eh_frame_hdr_->found_unrecognized_eh_frame_section(); for (New_cies::iterator p = new_cies.begin(); p != new_cies.end(); -- cgit v1.1