[PATCH] D41679: [asan] Restore asan_device_setup compatibility with older libraries.

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 2 13:36:37 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL321677: [asan] Restore asan_device_setup compatibility with older libraries. (authored by eugenis, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D41679?vs=128454&id=128456#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D41679

Files:
  compiler-rt/trunk/lib/asan/scripts/asan_device_setup


Index: compiler-rt/trunk/lib/asan/scripts/asan_device_setup
===================================================================
--- compiler-rt/trunk/lib/asan/scripts/asan_device_setup
+++ compiler-rt/trunk/lib/asan/scripts/asan_device_setup
@@ -336,6 +336,13 @@
 EOF
 }
 
+# On Android-L not allowing user segv handler breaks some applications.
+# Since ~May 2017 this is the default setting; included for compatibility with
+# older library versions.
+if [[ PRE_L -eq 0 ]]; then
+    ASAN_OPTIONS="$ASAN_OPTIONS,allow_user_segv_handler=1"
+fi
+
 if [[ x$extra_options != x ]] ; then
     ASAN_OPTIONS="$ASAN_OPTIONS,$extra_options"
 fi


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41679.128456.patch
Type: text/x-patch
Size: 638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180102/d0b33b3e/attachment.bin>


More information about the llvm-commits mailing list