https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81968
--- Comment #27 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > It does by removing the SHT_NULL sections. The patch should work - you > can double-check - it just doesn't handle the "corner case" of more > than 32000 input sections correctly when rewriting the symbol table. Ah, sorry, it works fine indeed (after minor tweaks to make it apply). Thanks!