From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A37AA3858D35; Fri, 31 Jul 2020 19:56:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A37AA3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1596225363; bh=sUu8+nIM4ObC6cTJHgz2ULZPMf8AR3fFMMfPw554hrk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ujRUYeg2YGd+aqTZ4kA+C6Mcm0+35TL4nhaV41eJSZIk5T7CJzRJi5777TR6WPYez Dm+Tk/WmiIxPJQCx3oegiTfoRxNF2BnQuu+8qxDBjH9jJyx7w7887MNbNztGRXMp3T mW6iVfHewjc5Q75Mkt507AncypGKg2Ux10P7u1Ak= From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/96385] GCC generates separate debug info with undefined symbols without relocations Date: Fri, 31 Jul 2020 19:56:03 +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: 10.2.1 X-Bugzilla-Keywords: lto, wrong-debug X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com 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: 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: Fri, 31 Jul 2020 19:56:03 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96385 --- Comment #8 from H.J. Lu --- The original pr26324a.o debug info contains reference to xxx. But reference to xxx has been removed by LTO. simple_object_copy_lto_debug_sections fails to remove the un-referenced symbol, xxx, from symbol table.=