Chromium Code Reviews

Unified Diff: runtime/szrt_asan.c

Issue 2068593003: Implemented linking to a dummy ASan runtime (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Added a test. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: runtime/szrt_asan.c
diff --git a/runtime/szrt_asan.c b/runtime/szrt_asan.c
new file mode 100644
index 0000000000000000000000000000000000000000..f89f04b19996ba832c52ab3d88ed8b3e9fda7583
--- /dev/null
+++ b/runtime/szrt_asan.c
@@ -0,0 +1,24 @@
+//===- subzero/runtime/szrt_asan.c - AddressSanitizer Runtime -----*- C -*-===//
+//
+// The Subzero Code Generator
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// \brief Provides the AddressSanitizer runtime.
+///
+/// Exposes functions for initializing the shadow memory region and managing it
+/// on loads, stores, and allocations.
+///
+//===----------------------------------------------------------------------===//
+
+#include <stdio.h>
+
+// TODO(tlively): Define and implement this library
+void __asan_init(void) {
+ printf("Set up shadow memory here\n");
+ return;
+}
« pydir/szbuild.py ('K') | « pydir/szbuild.py ('k') | src/IceASanInstrumentation.h » ('j') | no next file with comments »

Powered by Google App Engine