aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2018-02-20 17:09:05 -0800
committerTom Cherry <tomcherry@google.com>2018-02-21 15:10:24 -0800
commit8f419579ed27a86d140cc496196b5c0e577e4848 (patch)
treeca41d80b55677c2d1ce7e6137508bf305fe06d4b
parentee8e3dd67c910907115c7cef87be3d898d71a05d (diff)
downloadbionic-8f419579ed27a86d140cc496196b5c0e577e4848.tar.gz
Reject exit-time destructors in libc
Test: m libc Bug: b/73485611 Change-Id: Idc5da0f8a21e3f58fc68085577fa5fca40057276
-rw-r--r--libc/Android.bp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/Android.bp b/libc/Android.bp
index f5491f5ac..579c63c50 100644
--- a/libc/Android.bp
+++ b/libc/Android.bp
@@ -47,6 +47,10 @@ libc_common_flags = [
"-Werror=int-to-pointer-cast",
"-Werror=type-limits",
"-Werror",
+
+ // Clang's exit-time destructor registration hides __dso_handle, but
+ // __dso_handle needs to have default visibility on ARM32. See b/73485611.
+ "-Wexit-time-destructors",
]
// Define some common cflags