From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2E13E3858D32; Sat, 1 Apr 2023 12:42:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E13E3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680352938; bh=b6XpeLc9oLHhe1RhOpc9kV7W0TJr17S9EB8Tif4LdjI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LVWbfUdEpp0S4at3FyoPThlv7EIsqs9rtRiu7S4Yhh9AZTBwdZ/aySRFeamhTrejs f4Mp/jU5fFQzsRDrwAHs3OB82DyfUfkwuXwN5Gy6nhikRJf853SLWJOBKlt4kFuk/p MxMskmwLIeH8xmzZp+0PgU0VjeH61JQU2aOTL8gU= From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/109369] LTO drops explicitly referenced symbol _pei386_runtime_relocator Date: Sat, 01 Apr 2023 12:42:17 +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: 12.2.0 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109369 --- Comment #5 from Alexander Monakov --- Indeed, sorry, __attribute__((used)) seems a much better solution for symbo= ls that might be referenced implicitly, in a manner that LTO plugin cannot see= .=