https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106088
--- Comment #4 from William Tang <galaxyking0419 at gmail dot com> --- Okay, the '=' before search dir denotes sysroot replacement (https://sourceware.org/binutils/docs/ld/Options.html), so the configuration of ld should be correct. Anyway, it should be a binutils issue.