https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109698
--- Comment #7 from Nathan Ridge <zeratul976 at hotmail dot com> --- Based on some searching around for other users running into this error, this seems to be caused by an ld bug which was fixed in 2.32: https://sourceware.org/bugzilla/show_bug.cgi?id=24458