This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/86175] LTO code generator does not respect ld -u option to force symbol inclusion in the link product
- From: "zenith432 at users dot sourceforge.net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 Jun 2018 14:21:54 +0000
- Subject: [Bug lto/86175] LTO code generator does not respect ld -u option to force symbol inclusion in the link product
- Auto-submitted: auto-generated
- References: <bug-86175-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86175
--- Comment #5 from zenith432 at users dot sourceforge.net ---
This is a bug in ld.bfd. It's setting the resolution for entry symbols to
LDPR_PREVAILING_DEF_IRONLY_EXP instead of LDPR_PREVAILING_DEF. gold handles
them right.
I posted a patch in the sourceware bugzilla linked above at comment 3.