* 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

@ -1,5 +1,9 @@
2008-07-24 Ian Lance Taylor <iant@google.com>
PR 6048
* ehframe.cc (Eh_frame::add_ehframe_input_section): Check whether
this->eh_frame_hdr_ is NULL before using it.
* dynobj.cc (Versions::Versions): Update comment.
* dynobj.cc (Versions::Versions): If there is an soname, use it as

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