https://sourceware.org/bugzilla/show_bug.cgi?id=18698
Bug ID: 18698 Summary: internal error in target, at ../../binutils/gold/parameters.h:105 Product: binutils Version: 2.26 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: andrew.n.senkevich at gmail dot com CC: ian at airs dot com Target Milestone: --- cat t.c int proc( int a) { return a; } gcc t.c -c ar r t.a t.o ld.gold t.a -r ld.gold: internal error in target, at parameters.h:105 Stack: #0 gold::Parameters::target (this=<optimized out>) at ../../binutils/gold/parameters.h:105 #1 0x0000000000653b07 in target (this=<optimized out>) at ../../binutils/gold/parameters.cc:243 #2 gold::Parameters::entry (this=<optimized out>) at ../../binutils/gold/parameters.cc:241 #3 0x00000000005827b4 in gold::Library_base::should_include_member (symtab=symtab@entry=0x7fffffff8170, layout=layout@entry=0x7fffffff83d0, sym_name=0xae6e88 "proc", symp=symp@entry=0x7fffffff7b88, why=why@entry=0x7fffffff7b60, tmpbufp=tmpbufp@entry=0x7fffffff7b78, tmpbuflen=tmpbuflen@entry=0x7fffffff7b80) at ../../binutils/gold/archive.cc:141 #4 0x0000000000584498 in gold::Archive::add_symbols (this=0xae6c60, symtab=0x7fffffff8170, layout=0x7fffffff83d0, input_objects=0x7fffffff7f80, mapfile=0x0) at ../../binutils/gold/archive.cc:802 #5 0x0000000000584649 in gold::Add_archive_symbols::run (this=0xae6f10, workqueue=0x7fffffff7e60) at ../../binutils/gold/archive.cc:1113 #6 0x00000000006a3475 in gold::Workqueue::find_and_run_task (this=this@entry=0x7fffffff7e60, thread_number=thread_number@entry=0) at ../../binutils/gold/workqueue.cc:319 #7 0x00000000006a37da in gold::Workqueue::process (this=this@entry=0x7fffffff7e60, thread_number=thread_number@entry=0) at ../../binutils/gold/workqueue.cc:495 #8 0x00000000004068e6 in main (argc=3, argv=0x7fffffffe568) at ../../binutils/gold/main.cc:252 parameters->target_ is NULL while work with archive. Where is the proper place for initialization? -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils