https://sourceware.org/bugzilla/show_bug.cgi?id=29310
Szabolcs Nagy <nsz at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nsz at gcc dot gnu.org --- Comment #3 from Szabolcs Nagy <nsz at gcc dot gnu.org> --- linking lto1 does not fail (in the build log), gnat1 does. i don't know how __cxa_pure_virtual ends up being protected, but the link uses -static-libstdc++ where the definition should be, so copy reloc should not happen and thus the error is wrong. somethings that may help debugging: check `readelf -aW gnat1 |grep __cxa_pure_virtual` after linking with old binutils (is there any reloc? is it protected?) pass -Wl,-y,__cxa_pure_virtual to the failing link (does the definition come from static libstdc++?). -- You are receiving this mail because: You are on the CC list for the bug.