You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On OSX, we have the -dead_strip linker option to remove dead code.
On Linux, the usual procedure is linker options --gc-sections, however, this removes many sections that should not be removed. You can see an example with --print-gc-sections which outputs, for my program:
In other words, it looks like it's stripping practically the entire program, including things that are obviously wrong, like protocol conformances and the whole standard library.
I'm not totally sure why these are being removed or why the behavior is different on one platform than another. I guess swift is not emitting the usage in a format that GCC ld understands.
The text was updated successfully, but these errors were encountered:
Environment
swift-DEVELOPMENT-SNAPSHOT-2016-05-09-a
Linux x64
Additional Detail from JIRA
md5: 266a4de7d827887d8a431b075afc052f
Issue Description:
On OSX, we have the
-dead_strip
linker option to remove dead code.On Linux, the usual procedure is linker options
--gc-sections
, however, this removes many sections that should not be removed. You can see an example with--print-gc-sections
which outputs, for my program:In other words, it looks like it's stripping practically the entire program, including things that are obviously wrong, like protocol conformances and the whole standard library.
I'm not totally sure why these are being removed or why the behavior is different on one platform than another. I guess swift is not emitting the usage in a format that GCC ld understands.
The text was updated successfully, but these errors were encountered: