From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6181E385781A; Wed, 17 Mar 2021 13:33:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6181E385781A From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/99618] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section Date: Wed, 17 Mar 2021 13:33:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: REOPENED 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: resolution cf_reconfirmed_on bug_status everconfirmed 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, 17 Mar 2021 13:33:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99618 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|MOVED |--- Last reconfirmed| |2021-03-17 Status|RESOLVED |REOPENED Ever confirmed|0 |1 --- Comment #3 from H.J. Lu --- This is what GCC generates: hjl@gnu-cfl-2 pr27590]$ cat bad.s .section .gnu.debuglto_.debug_macro,"e",@progbits .Ldebug_macro0: .long .Ldebug_macro2 .section .gnu.debuglto_.debug_macro,"eG",@progbits,wm4,comdat .Ldebug_macro2: .value 0x4 [hjl@gnu-cfl-2 pr27590]$ gcc -c bad.s [hjl@gnu-cfl-2 pr27590]$ ld -r bad.o bad.o `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_ma= cro' of bad.o: defined in discarded section `.gnu.debuglto_.debug_macro[wm4]' of bad.o [hjl@gnu-cfl-2 pr27590]$=