https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68881
--- Comment #10 from Jan Hubicka <hubicka at gcc dot gnu.org> --- OK, I would say it is bug in gas, too, but I do have patch for "optimizing" weakrefs into transparent aliases queued for next stage 1. I will break it out and re-test. The only not 100% trivial part is copying the visibility from the target symbol to weakref. It seems I will need that stuff for MPX anyway.