https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169
--- Comment #6 from rguenther at suse dot de <rguenther at suse dot de> --- On Wed, 6 Apr 2022, marxin at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169 > > --- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> --- > It's there since the introduction of the option in r8-2176-g417ca0117a1a9a8a. Yes, I think it's a fundamental limitation of how we emit refereces into the section if the defs are inside comdats - the refs are locally resolved instead of being symbolic. But IMHO somehow amending the patchable functions list from inside the comdat group itself would be preferable.