Do not re-export _Unwind_XXX symbols.
The problem is that this library is getting _Unwind_XXX symbols from
libgcc.a for the arm targets, and then re-exporting them.
This is causing facebook to crash because a shared library is using
an undefined reference to an unwind symbol and then using the one
from libz.so, which is mixing an llvm unwinder with a gcc one.
Test: facebook no longer crashes when starting up.
(cherry picked from commit 4e652aee9d360aac8cfc2812b644a25d6ba7840f)
diff --git a/Android.bp b/Android.bp
index 01bb51b..54454a4 100644
@@ -47,7 +47,13 @@
// TODO: This is to work around b/24465209. Remove after root cause is fixed
- ldflags: ["-Wl,--hash-style=both"],
+ ldflags: [
+ // TODO: This works around b/130267141 to avoid re-exporting
+ // _Unwind_XXX symbols and needs to be removed when a
+ // global location for this can be found.