https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68881
--- Comment #15 from Jan Hubicka <hubicka at gcc dot gnu.org> --- I will implement the optimization soon (with transparent aliases it is finally not too hard to do), but the patch will not be backporable to gcc 5 and for years it was possible to output weakref and its definition in one file. So if it is not hard to make gas deal with it as expected, or at least output better diagnostics, it would be nice.