PR 6048
authorIan Lance Taylor <ian@airs.com>
Thu, 24 Jul 2008 21:23:09 +0000 (21:23 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 24 Jul 2008 21:23:09 +0000 (21:23 +0000)
* ehframe.cc (Eh_frame::add_ehframe_input_section): Check whether
this->eh_frame_hdr_ is NULL before using it.

gold/ChangeLog
gold/ehframe.cc

index 517f9216d64b1dff20c6907883da5fd8847247ed..70376251cbff44ac77c5df8b52d593f6c55038ee 100644 (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
index 5061f80764ea760fcb892ad04ace660574a63e52..333e665c1e06b8123e5898451200747283270555 100644 (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();
This page took 0.033653 seconds and 4 git commands to generate.