[Bug lto/67548] [5/6 Regression] LTO drops weak binding with "ld -r"
hubicka at ucw dot cz
gcc-bugzilla@gcc.gnu.org
Sat Sep 12 16:04:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67548
--- Comment #5 from Jan Hubicka <hubicka at ucw dot cz> ---
> None of them is applicable to a weakdef with "ld -r".
Yep, GCC simply assumes that incremental linking is not going to happen and it
makes strong assumptions
about visibility in static&PIC binaries.
To support incremental linking we need a way to pass this information to GCC.
Either by extra codes or
by informing the plugin that linking is incremental.
See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64860
Honza
More information about the Gcc-bugs
mailing list