https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104887
Bug ID: 104887
Summary: mold linker is not detected properly
Product: gcc
Version: 11.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: rui314 at gmail dot com
Target Milestone: ---
GCC 11.2.0 fails to bootstrap if `ld` is `ld.mold`
(https://github.com/rui314/mold). It is because gcc's configure script has no
idea as to what `ld.mold` is and consider it as a very old linker that doesn't
support COMDAT.
GCC 12's configure script correctly recognizes mold.
Can you backport the fix to support mold in the GCC 11 series?