Comment #1 on issue 366 by [email protected]: x86 android: no static intermediates
https://code.google.com/p/address-sanitizer/issues/detail?id=366

Per off-the-band advice, I have enabled asan for non-arm Android with the following patch to external/compiler-rt:

diff --git a/lib/asan/Android.mk b/lib/asan/Android.mk
index 62fdd17..d44dfc8 100644
--- a/lib/asan/Android.mk
+++ b/lib/asan/Android.mk
@@ -17,7 +17,7 @@

 LOCAL_PATH:= $(call my-dir)

-ifeq ($(TARGET_ARCH),arm)
+#ifeq ($(TARGET_ARCH),arm)

 ASAN_NEEDS_SEGV=0
 ASAN_HAS_EXCEPTIONS=1
@@ -195,4 +195,4 @@ LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk

 include $(BUILD_EXECUTABLE)

-endif # ifeq($(TARGET_ARCH),arm)
+#endif # ifeq($(TARGET_ARCH),arm)
diff --git a/lib/sanitizer_common/sanitizer_linux_libcdep.cc b/lib/sanitizer_common/sanitizer_linux_libcdep.cc
index 2f9b685..6973bbb 100644
--- a/lib/sanitizer_common/sanitizer_linux_libcdep.cc
+++ b/lib/sanitizer_common/sanitizer_linux_libcdep.cc
@@ -198,11 +198,11 @@ uptr GetTlsSize() {
 // sizeof(struct thread) from glibc.
// There has been a report of this being different on glibc 2.11. We don't know
 // when this change happened, so 2.12 is a conservative estimate.
-#if __GLIBC_PREREQ(2, 12)
+//#if __GLIBC_PREREQ(2, 12)
 const uptr kThreadDescriptorSize = FIRST_32_SECOND_64(1216, 2304);
-#else
-const uptr kThreadDescriptorSize = FIRST_32_SECOND_64(1168, 2304);
-#endif
+  //#else
+  //const uptr kThreadDescriptorSize = FIRST_32_SECOND_64(1168, 2304);
+  //#endif

 uptr ThreadDescriptorSize() {
   return kThreadDescriptorSize;

Unfortunately, it didn't help. I still get the same issue:

make: *** No rule to make target `out/target/product/generic_x86/obj/STATIC_LIBRARIES/libasan_intermediates/export_includes', needed by `out/target/product/generic_x86/obj/EXECUTABLES/stagefright_intermediates/import_includes'. Stop.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to