summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2008-07-24 21:23:09 +0000
committerIan Lance Taylor <ian@airs.com>2008-07-24 21:23:09 +0000
commit16d5d4dcff50509e8183d216796b2322a44d9021 (patch)
tree4b21b923eb0c9e55377306677d38374f187a1a8e
parent9579d0d51807f79a7861441e6eb9ced902aa112c (diff)
downloadbinutils-redhat-16d5d4dcff50509e8183d216796b2322a44d9021.tar.gz
PR 6048
* ehframe.cc (Eh_frame::add_ehframe_input_section): Check whether this->eh_frame_hdr_ is NULL before using it.
-rw-r--r--gold/ChangeLog4
-rw-r--r--gold/ehframe.cc3
2 files changed, 6 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 517f9216d6..70376251cb 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 5061f80764..333e665c1e 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();