[Bug lto/86490] lto1: fatal error: multiple prevailing defs
amonakov at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 11 19:40:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86490
--- Comment #6 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
(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.
> Do you have a testcase?
No, it would take some time to prepare.
More information about the Gcc-bugs
mailing list