https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81968
--- Comment #51 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 43073 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43073&action=edit Updated patch with SHT_GROUP and extended section index handling Tested on the big testcase, otherwise untested. I belive that the large index works unpatched is a co-incidence, so we need to fix that anyway. Simplified by assuming the extended index will not be needed after section purging/remapping. Added SHT_GROUP remapping support as well. Will now throw this on LTO bootstrap...