https://sourceware.org/bugzilla/show_bug.cgi?id=30155
--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The binutils-2_40-branch branch has been updated by Alan Modra <amo...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=34a2b4a0e217476e302f6bcfe01fd1fbb93a93f1 commit 34a2b4a0e217476e302f6bcfe01fd1fbb93a93f1 Author: Alan Modra <amo...@gmail.com> Date: Thu Feb 23 18:23:12 2023 +1030 PR30155, ld segfault in _bfd_nearby_section The segfault was a symptom of messing with the absolute section next field, confusing bfd_section_removed_from_list in linker.c:fix_syms. That's not all that was going wrong. The INSERT list of output sections was being inserted into itself, ie. lost from the main list of linker statements. PR 30155 * ldlang.c (process_insert_statements): Handle pathological case of the insert script being inserted before the first output section statement in the default script. (output_prev_sec_find): Don't test section owner here. (insert_os_after): Change parameter to a list union pointer. (lang_insert_orphan): Test section owner here and adjust insert_os_after call. (cherry picked from commit 18e7a6587e3f111e9367ea707f9eb21acf4b9af7) -- You are receiving this mail because: You are on the CC list for the bug.