https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98210
--- Comment #6 from Jozef Lawrynowicz <jozefl at gcc dot gnu.org> --- I've posted a patch where the HAVE_GAS_SHF_GNU_RETAIN configure test has been extended to check for SHF_GNU_RETAIN gold support: https://gcc.gnu.org/pipermail/gcc-patches/2020-December/562100.html