This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/47247] Linker plugin specification makes it difficult to handle COMDATs
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Jan 2011 17:13:48 +0000
- Subject: [Bug lto/47247] Linker plugin specification makes it difficult to handle COMDATs
- Auto-submitted: auto-generated
- References: <bug-47247-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47247
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-10 17:13:46 UTC ---
(In reply to comment #4)
> > Can we mark the symbol COMDAT when we generate the output?
> What symbol and what output?
>
> Honza
I don't think hjl/lto-mixed branch has the problem
---
Current linker plugin specification has problem with COMDAT. When COMDAT
fnuction is put into symbol table and is used, it gets resolved as PREVAILING.
This imply that it must be output in the final binary.
---
if all COMAT symbols are properly marked since PREVAILING is
only used for symbol resolution and has no impact on symbol
table.