From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 76575385770C; Thu, 7 Mar 2024 14:13:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 76575385770C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709820784; bh=nuNLp06zXHpAicP+wSsNEnTFbcfIyBbiRFIY/VoRrsU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=soNa7pGatIIby2hsOG2wVgMJqqq7VRsgsO6p4cNFI5jgxtJl3YWDEc3V7Lsbsj9iV vPP1juH/ycnlfrwOXk8GdA3mM5i/Ja3WbruBnA5gFZnS8exBHhjfsHdN9kyllfmk39 5Q8aHl2Nt3pF41d9lS4sODqqtNyZ8OXb5HB5z+aQ= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/113617] [14 Regression] Symbol ... referenced in section `.data.rel.ro.local' of ...: defined in discarded section ... since r14-4944 Date: Thu, 07 Mar 2024 14:13:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: link-failure, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D113617 --- Comment #24 from Jakub Jelinek --- (In reply to Francois-Xavier Coudert from comment #23) > It's not being passed -shared on darwin: Then that means the shared effective target doesn't work properly on darwin then. It even has hacks for darwin in it though: # Darwin's linker defaults to error on undefined (which makes it look as #=C2=A0if we do not support shared) but we can tell it to allow the sym= bols used # here to be undefined. set extra_flags "" if { [istarget *-*-darwin\[912\]*] } { set extra_flags "-Wl,-U,_foo,-U,_bar" } ...=