https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70120
--- Comment #9 from Richard Henderson <rth at gcc dot gnu.org> --- Ah right, -ffunction-sections. That requires a more extensive, though less hackish, fix. Will post a new patch later this afternoon.