https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98860
--- Comment #49 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 50459 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50459&action=edit gcc11-pr98860.patch In that case this completely untested patch which could work, but no way to really test it myself properly (nor have time to do that). It needs testing both with bad and good binutils.