https://sourceware.org/bugzilla/show_bug.cgi?id=28149
--- Comment #10 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alan Modra <amo...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5b4846283c3d49138a58a3bb4d61ed3e2dfffff4 commit 5b4846283c3d49138a58a3bb4d61ed3e2dfffff4 Author: Alan Modra <amo...@gmail.com> Date: Mon Sep 20 11:30:41 2021 +0930 Re: PR28149, debug info with wrong file association Fixes segfaults when building aarch64-linux kernel, due to only doing part of the work necessary when allocating file numbers late. I'd missed looping over subsegments, which resulted in some u.filename entries left around and later interpreted as u.view. PR 28149 * dwarf2dbg.c (purge_generated_debug): Iterate over subsegs too. (dwarf2_finish): Call do_allocate_filenum for all subsegs too, in a separate loop before subsegs are chained. -- You are receiving this mail because: You are on the CC list for the bug.