Date: Sun, 15 Nov 2020 11:28:23 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 250783] ld segmentation fault Message-ID: <bug-250783-29464-BOKespm9qF@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-250783-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-250783-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250783 --- Comment #12 from commit-hook@FreeBSD.org --- A commit references this bug: Author: dim Date: Sun Nov 15 11:28:03 UTC 2020 New revision: 367704 URL: https://svnweb.freebsd.org/changeset/base/367704 Log: MFC r367623: Merge commit 8df4e6094 from llvm git (by Fangrui Song): [ELF] Don't consider SHF_ALLOC ".debug*" sections debug sections Fixes PR48071 * The Rust compiler produces SHF_ALLOC `.debug_gdb_scripts` (which normally does not have the flag) * `.debug_gdb_scripts` sections are removed from `inputSections` due to --strip-debug/--strip-all * When processing --gc-sections, pieces of a SHF_MERGE section can be marked live separately `=3D>` segfault when marking liveness of a `.debug_gdb_scripts` which is not split into pieces (because it is not in `inputSections`) This patch circumvents the problem by not treating SHF_ALLOC ".debug*" as debug sections (to prevent --strip-debug's stripping) (which is still useful on its own). Reviewed By: grimar Differential Revision: https://reviews.llvm.org/D91291 This should fix lld segfaulting when linking the rust-based parts of the devel/py-maturin port. Reported by: Nick Venenga <nijave@gmail.com> PR: 250783 Changes: _U stable/11/ stable/11/contrib/llvm-project/lld/ELF/InputSection.h _U stable/12/ stable/12/contrib/llvm-project/lld/ELF/InputSection.h --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250783-29464-BOKespm9qF>