Using gold from 2.20 to build memtest86-3.4 causes a segfault in LD, back trace :
#0 gold::Output_section::add_output_section_data (this=0x0, inp=0xbfffc6dc) at ../../binutils-2.20/gold/output.cc:2001 #1 0x0810bfe3 in gold::Output_section::add_output_section_data (this=0x0, posd=0x82dac10) at ../../binutils-2.20/gold/output.cc:1959 #2 0x080cdb75 in void gold::Layout::sized_create_version_sections<32, false>(gold::Versions const*, gold::Symbol_table const*, unsigned int, std::vector<gold::Symbol*, std::allocator<gold::Symbol*> > const&, gold::Output_section const*) () #3 0x080c63f5 in gold::Layout::finalize (this=0xbfffe930, input_objects=0xbfffed40, symtab=0xbfffead4, target=0x824a820, task=0x82bd868) at ../../binutils-2.20/gold/layout.cc:1555 #4 0x080c65e3 in gold::Layout_task_runner::run (this=0x82bd080, workqueue=0xbfffee04, task=0x82bd868) at ../../binutils-2.20/gold/layout.cc:140 #5 0x080b462f in gold::Task_function::run (this=0x82bd868, workqueue=0xbfffee04) at ../../binutils-2.20/gold/workqueue.h:178 #6 0x08192f89 in gold::Workqueue::find_and_run_task (this=0xbfffee04, thread_number=0) at ../../binutils-2.20/gold/workqueue.cc:314 #7 0x0819321c in gold::Workqueue::process (this=0xbfffee04, thread_number=0) at ../../binutils-2.20/gold/workqueue.cc:480 #8 0x0804bc64 in main (argc=65536, argv=0x10001) at ../../binutils-2.20/gold/main.cc:246 It appears that in the Layout::sized_create_version_sections function the first thing is does is: Output_section* vsec = this->choose_output_section(NULL, ".gnu.version", elfcpp::SHT_GNU_versym, elfcpp::SHF_ALLOC, false); which can return NULL, then a few lines down it does: vsec->add_output_section_data(vdata); which fails because vsec is NULL. Upgrading to snapshot from 20091102 I now get the error: internal error in address, at output.h:126 This doesn't trap in gdb, please let me know what extra information you need. -- Summary: building memtest86 causes segfault in LD. Product: binutils Version: 2.21 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold AssignedTo: ian at airs dot com ReportedBy: scott dot sourceware dot 2009 at scottrix dot co dot uk CC: bug-binutils at gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=10887 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils