[PATCH] D52155: [sanitizer_common] Fuchsia now supports .preinit_array
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 16 14:15:15 PDT 2018
phosek created this revision.
phosek added reviewers: vitalybuka, morehouse, mcgrathr.
Herald added subscribers: Sanitizers, llvm-commits, kubamracek, srhines.
Support for .preinit_array has been implemented in Fuchsia's libc,
add Fuchsia to the list of platforms that support this feature.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D52155
Files:
compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
Index: compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
+++ compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
@@ -105,8 +105,8 @@
//
// FIXME: do we have anything like this on Mac?
#ifndef SANITIZER_CAN_USE_PREINIT_ARRAY
-#if ((SANITIZER_LINUX && !SANITIZER_ANDROID) || SANITIZER_OPENBSD) && \
- !defined(PIC)
+#if ((SANITIZER_LINUX && !SANITIZER_ANDROID) || SANITIZER_OPENBSD || \
+ SANITIZER_FUCHSIA) && !defined(PIC)
#define SANITIZER_CAN_USE_PREINIT_ARRAY 1
// Before Solaris 11.4, .preinit_array is fully supported only with GNU ld.
// FIXME: Check for those conditions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52155.165695.patch
Type: text/x-patch
Size: 739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180916/208d5ec2/attachment.bin>
More information about the llvm-commits
mailing list