Bug 13497 - LTO keeps unneeded functions (mingw32 target)
Summary: LTO keeps unneeded functions (mingw32 target)
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.24
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 15:31 UTC by Dmitry Gorbachev
Modified: 2011-12-14 15:34 UTC (History)
0 users

See Also:
Host:
Target: mingw32
Build:
Last reconfirmed:


Attachments
Testcase (329 bytes, text/plain)
2011-12-14 15:31 UTC, Dmitry Gorbachev
Details
Two resolution files (183 bytes, text/plain)
2011-12-14 15:32 UTC, Dmitry Gorbachev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Gorbachev 2011-12-14 15:31:14 UTC
Created attachment 6108 [details]
Testcase
Comment 1 Dmitry Gorbachev 2011-12-14 15:32:22 UTC
Created attachment 6109 [details]
Two resolution files
Comment 2 Dmitry Gorbachev 2011-12-14 15:34:25 UTC
As observed in <http://gcc.gnu.org/PR51523>, this looks more like a linker bug.

The option `--exclude-all-symbols' does not work, too (though symbols are not exported, they still get resolution PREVAILING_DEF_IRONLY_EXP); but `--version-script=...' option works.