[PATCH] D71077: scudo: Fix the build of wrappers_c_test.cpp on Android.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 11:02:04 PST 2019
pcc created this revision.
pcc added a reviewer: cryptoad.
Herald added projects: Sanitizers, LLVM.
Herald added a subscriber: Sanitizers.
pcc added a child revision: D71081: gn build: Add support for building scudo and its unit tests..
The Android headers don't provide a declaration of valloc or pvalloc, so we
need to declare them ourselves.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71077
Files:
compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
Index: compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
===================================================================
--- compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
+++ compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
@@ -20,6 +20,8 @@
int malloc_iterate(uintptr_t base, size_t size,
void (*callback)(uintptr_t base, size_t size, void *arg),
void *arg);
+void *valloc(size_t size);
+void *pvalloc(size_t size);
}
// Note that every C allocation function in the test binary will be fulfilled
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71077.232398.patch
Type: text/x-patch
Size: 578 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191205/0540ea8f/attachment.bin>
More information about the llvm-commits
mailing list