Fix build failure in inf-ptrace.c.
[binutils-gdb.git] / gold / ehframe.cc
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();