* ehframe.cc (Eh_frame::add_ehframe_input_section): Check whether
	this->eh_frame_hdr_ is NULL before using it.
This commit is contained in:
Ian Lance Taylor 2008-07-24 21:23:09 +00:00
parent c89ad72891
commit 5edd166e7d
2 changed files with 6 additions and 1 deletions

View file

@ -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();