From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 157993857726; Wed, 27 Sep 2023 05:34:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 157993857726 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695792860; bh=ZaRjJM5cxNx64v+7u3nweKIq2YluVs5XtZGksVreqVQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Bz9ywDmRwNgI+WdhlmxGbg6xc2BN7ZX69UeSme9nQexVau21mbcW5UwofCl23tMjP E54osI8o2NG+TvFw5HYhQpEcN6tkGHSezSitj8S6I5jyAthPxkh4V1ultYl+UhwG6Z mw/orgeGd+kZetTBi9E9Rr2KV95HnOjXDyM//348= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/111605] Cross compilation doesn't work with `-fuse-ld=mold` Date: Wed, 27 Sep 2023 05:34:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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=3D111605 --- Comment #7 from Andrew Pinski --- (In reply to Rui Ueyama from comment #6) > Since mold supports all targets by a single executable, it doesn't make m= uch > sense to install one mold executable for each embedded toolchain. You are wrong for support reasons. Especially when it comes to companies providing toolchain support. Most don't want to be based on what is install= ed on the system. >=20 > All in all, the problem wouldn't exist at all if gcc just looks for > `ld.mold`? (I'm not suggesting making a change to the default behavior; I= 'd > do that only if `-fuse-ld=3Dmold` or `-fuse-ld=3Dlld` is givne.) This might be useful for a distro which provides all binaries but when it c= omes to supporting embedded a target tighting control is better and not dependin= g on the installed version is always better.=