This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/86490] lto1: fatal error: multiple prevailing defs
- 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: Wed, 11 Jul 2018 21:16:52 +0000
- Subject: [Bug lto/86490] lto1: fatal error: multiple prevailing defs
- Auto-submitted: auto-generated
- References: <bug-86490-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86490
--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Alexander Monakov from comment #6)
> (In reply to H.J. Lu from comment #5)
> > When ld sees a common symbol, it will use a non-common definiton
> > in a library, .a or .so, to override it.
>
> This is surprising, is it documented somewhere? I don't think the ELF spec
> suggests something like that needs to happen.
It is to be consistent for common symbol linked against .a or .so.