https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117796
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >tells to linker via plugin that some_unavailable_symbol() is actually defined >somewhere. Actually that is not is going on. f instead is becoming local and then since it is only written to is being removed as it is unused.