https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111605
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Rui Ueyama from comment #6) > Since mold supports all targets by a single executable, it doesn't make much > 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 installed on the system. > > 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=mold` or `-fuse-ld=lld` is givne.) This might be useful for a distro which provides all binaries but when it comes to supporting embedded a target tighting control is better and not depending on the installed version is always better.