Index: third_party/tcmalloc/chromium/src/base/vdso_support.h |
diff --git a/third_party/tcmalloc/chromium/src/base/vdso_support.h b/third_party/tcmalloc/chromium/src/base/vdso_support.h |
index b97ab254d38eac51c6158c0203d0a19d37487ef1..94fad3b8bc20061c8932dfe0db2f4dff475d7bc3 100644 |
--- a/third_party/tcmalloc/chromium/src/base/vdso_support.h |
+++ b/third_party/tcmalloc/chromium/src/base/vdso_support.h |
@@ -61,7 +61,11 @@ |
#ifdef HAVE_ELF_MEM_IMAGE |
+// This matches the same conditions of stacktrace_x86-inl.h, the only client of |
+// vdso_support, to avoid static initializers. |
+#if defined(__linux__) && defined(__i386__) |
#define HAVE_VDSO_SUPPORT 1 |
+#endif |
#include <stdlib.h> // for NULL |