https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91252
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-07-25 CC| |hjl at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- I think the linker binds power to the definition you provide and LTO takes advantage of this: 1 t.o 3 200 798ad5a738e1a69e PREVAILING_DEF_IRONLY power 213 798ad5a738e1a69e PREVAILING_DEF main 240 798ad5a738e1a69e RESOLVED_DYN atoi this happens with binutils which already has the patch and both BFD and gold behave this way. Note this is a linker bug, not a GCC bug as can be seen from the resolution.