https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64860
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- Yes, -r should be honored by the appropriate resolution info (not _IR_ONLY). Thus you have to treat that conservatively. Otherwise you can create a testcase that fails with the final link and the other strong definition in a shared library.