[Bug driver/42690] Undefined reference errors with -flto -fuse-linker-plugin

hubicka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Nov 20 21:14:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42690

--- Comment #23 from Jan Hubicka <hubicka at gcc dot gnu.org> 2010-11-20 21:06:50 UTC ---
BTW I really think both gold and GNU ld will need to do two stage linking (i.e.
fully re-link after LTO step).  Other problems involved in this include the
fact that we can optimize out some library calls and currently I think the
library will be still linked in and the issue with COMDATs.
(i.e. when GCC announce COMDAT function in symbol table and later inline it, it
still need to produce out-of-line function body because linker handles is as
PREVAIL). Finally -fwhole-program makes lto symtab entries to disappear.



More information about the Gcc-bugs mailing list