When I use gold to link a gcc 2.95.3 object file it crashes. To reproduce, compile a simple C++ program with g++ 2.95.3 and use gold for linking. The following hello world will do: #include <iostream> int main() { std::cout << "Hello World" << std::endl; }
Thanks for the bug report. I just committed a patch which fixes the problem. * ehframe.cc (Eh_frame::add_ehframe_input_section): Check whether this->eh_frame_hdr_ is NULL before using it.