main/gcc: rebuild using ld.bfd

fixes #3616