Currently, the only way to specify which linker should be used by gcc is to pass the -B/path/to/dir/containing/linker option. Binutils now has an option to allow dual linkers (ld.gold and ld.bfd) to be installed simultaneously by passing a configure option (--enable-gold=both). However, these are installed in the same directory. By creating symlinks that are in separate directories when installing binutils, the -B option can be used to specify the linker. Reproducible: Always A patch to add this functionality will be attached.
Created attachment 245815 [details, diff] Patch to add dual-linker support to binutils-config
upstream gcc is already looking at adding a -fuse-ld= option. no point in hacking things via binutils-config.