diff options
author | Ian Lance Taylor <ian@airs.com> | 2008-07-24 21:23:09 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2008-07-24 21:23:09 +0000 |
commit | 5edd166e7df6843077b800b2c55a97ea89ce6dcd (patch) | |
tree | 93288fbb7ad533e1f3f90583fd2271e1e1b6d5b9 /gold | |
parent | c89ad7289199432c5042995ce790fb61c4f9bd65 (diff) | |
download | gdb-5edd166e7df6843077b800b2c55a97ea89ce6dcd.zip gdb-5edd166e7df6843077b800b2c55a97ea89ce6dcd.tar.gz gdb-5edd166e7df6843077b800b2c55a97ea89ce6dcd.tar.bz2 |
PR 6048
* ehframe.cc (Eh_frame::add_ehframe_input_section): Check whether
this->eh_frame_hdr_ is NULL before using it.
Diffstat (limited to 'gold')
-rw-r--r-- | gold/ChangeLog | 4 | ||||
-rw-r--r-- | gold/ehframe.cc | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 517f921..7037625 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -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 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(); |