https://sourceware.org/bugzilla/show_bug.cgi?id=18788
Bug ID: 18788 Summary: Crash in gold::Output_section_element_input::set_section_addres ses Product: binutils Version: 2.26 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: rmansfield at qnx dot com CC: ian at airs dot com Target Milestone: --- $ cat hw.c int foo() { } $ gcc hw.c -c $ cat t.lnk MEMORY { ram : ORIGIN = 0x40300000, LENGTH = 0x14000 } SECTIONS { .text : { hw.o *(.text) } > ram } $ ld.gold -Tt.lnk hw.o Segmentation fault (core dumped) Happens in 2.24, and HEAD $ ./ld-new --version GNU gold (GNU Binutils 2.25.51.20150807) 1.11 Copyright (C) 2015 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. Program received signal SIGSEGV, Segmentation fault. 0x00000000007b4a1e in gold::Output_section_element_input::set_section_addresses (this=0xd62490, layout=0x7fffffff79b0, output_section=0xd771b0, subalign=0, dot_value=0x7fffffff6eb0, dot_section=0x7fffffff6db8, fill=0x7fffffff6d80, input_sections=0x7fffffff6e20) at ../../gold/script-sections.cc:1674 1674 if (isp.sort != SORT_WILDCARD_NONE (gdb) bt #0 0x00000000007b4a1e in gold::Output_section_element_input::set_section_addresses (this=0xd62490, layout=0x7fffffff79b0, output_section=0xd771b0, subalign=0, dot_value=0x7fffffff6eb0, dot_section=0x7fffffff6db8, fill=0x7fffffff6d80, input_sections=0x7fffffff6e20) at ../../gold/script-sections.cc:1674 #1 0x00000000007b66de in gold::Output_section_definition::set_section_addresses (this=0xd623b0, symtab=0x7fffffff7750, layout=0x7fffffff79b0, dot_value=0x7fffffff6eb0, dot_alignment=0x7fffffff6ec0, load_address=0x7fffffff6ed0) at ../../gold/script-sections.cc:2520 #2 0x00000000007b8d17 in gold::Script_sections::set_section_addresses ( this=0x7fffffffda50, symtab=0x7fffffff7750, layout=0x7fffffff79b0) at ../../gold/script-sections.cc:3624 #3 0x00000000007cb099 in gold::Script_options::set_section_addresses ( this=0x7fffffffd930, symtab=0x7fffffff7750, layout=0x7fffffff79b0) at ../../gold/script.cc:1232 #4 0x00000000006d2e62 in gold::Layout::set_section_addresses_from_script ( this=0x7fffffff79b0, symtab=0x7fffffff7750) at ../../gold/layout.cc:3893 #5 0x00000000006d9ee3 in gold::Layout::relaxation_loop_body ( this=0x7fffffff79b0, pass=0, target=0xd61890, symtab=0x7fffffff7750, pload_seg=0x7fffffff70b0, phdr_seg=0x0, segment_headers=0xdbfec0, file_header=0xdbff00, pshndx=0x7fffffff7080) at ../../gold/layout.cc:2484 #6 0x00000000006cfc78 in gold::Layout::finalize (this=0x7fffffff79b0, input_objects=0x7fffffff7560, symtab=0x7fffffff7750, target=0xd61890, ---Type <return> to continue, or q <return> to quit--- task=0xd9ed70) at ../../gold/layout.cc:2773 #7 0x00000000006cb31e in gold::Layout_task_runner::run (this=0xd9ed30, workqueue=0x7fffffff7440, task=0xd9ed70) at ../../gold/layout.cc:374 #8 0x00000000006867c9 in gold::Task_function::run (this=0xd9ed70, workqueue=0x7fffffff7440) at ../../gold/workqueue.h:178 #9 0x00000000008118b2 in gold::Workqueue::find_and_run_task ( this=0x7fffffff7440, thread_number=0) at ../../gold/workqueue.cc:319 #10 0x0000000000811f0c in gold::Workqueue::process (this=0x7fffffff7440, thread_number=0) at ../../gold/workqueue.cc:495 #11 0x000000000040402d in main (argc=3, argv=0x7fffffffdbc8) at ../../gold/main.cc:252 -- 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