]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #50093 - alexcrichton:android-uwtable, r=michaelwoerister
authorbors <bors@rust-lang.org>
Sat, 21 Apr 2018 16:18:22 +0000 (16:18 +0000)
committerbors <bors@rust-lang.org>
Sat, 21 Apr 2018 16:18:22 +0000 (16:18 +0000)
rustc: Always emit `uwtable` on Android

Long ago (#40549) we enabled the `uwtable` attribute on Windows by default
(even with `-C panic=abort`) to allow unwinding binaries for [stack unwinding
information][winstack]. It looks like this same issue is [plaguing][arm1]
Gecko's Android platforms [as well][arm2]. This commit applies the same fix
as #40549 except that this time it's applied for all Android targets.

Generating a `-C panic=abort` binary for `armv7-linux-androideabi` before this
commit generated a number of `cantunwind` functions (detected with `readelf -u`)
but after this commit they all list appropriate unwind information.

Closes #49867

[winstack]: https://bugzilla.mozilla.org/show_bug.cgi?id=1302078
[arm1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1453220
[arm2]: https://bugzilla.mozilla.org/show_bug.cgi?id=1451741


Trivial merge