From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 75B75385735F; Wed, 20 Apr 2022 07:14:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 75B75385735F From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/91239] gcc generates invalid .debug_macro sections (according to lld folks) Date: Wed, 20 Apr 2022 07:14:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 9.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2022 07:14:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D91239 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek --- See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99618 and https://sourceware.org/bugzilla/show_bug.cgi?id=3D27590 >>From DWARF5 it is clear what needs to happen and giving up on the DW_MACRO_import deduplication would mean 10x growth of .debug_macro or how = much on average. Furthermore, due to the ill-designed -fuse-ld=3D option which allows users = to easily switch to a linker which doesn't support what has been determined du= ring gcc configure time from the linker tested at that time we can't easily disa= ble DW_MACRO_import just for selected linkers like mold. So, I think those linkers simply have to support this, whether by a hack ke= yed on a particular section name or generally for non-allocatable sections is u= p to them.=