-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OS X 10.9's linker has a bug that results in it failing to preserve DWARF unwind information when passed the -no_compact_unwind flag. This flag is passed on OS X because the unwind information for __morestack cannot be represented by the compact unwind format. We can work around this problem by using a more targeted approach to disabling compact unwind information. The OS X linker looks for a particular pattern in the DWARF unwind information and will not attempt to convert the unwind information to the compact format. The pattern in question is the return address register being saved twice to the same location. Fixes #6849.
- Loading branch information
Showing
4 changed files
with
23 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fd8c06e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at https://github.com/bdash/rust/commit/fd8c06e7b56baab37ce6154cca6c518a76d54a78
fd8c06e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging bdash/rust/mavericks-unwinding = fd8c06e into auto
fd8c06e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bdash/rust/mavericks-unwinding = fd8c06e merged ok, testing candidate = b477f7a
fd8c06e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/2096
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2100
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1206
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1205
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2114
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1206
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1206
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2115
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1206
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1206
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/1285
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/2099
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/1204
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/1206
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/1883
fd8c06e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = b477f7a