https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101215 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- I think you should be able to build GCC with --with-ld=/path/to/mold you just can't select it later using -fuse-ld