Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1625)

Unified Diff: newlib/libc/misc/init.c

Issue 1533383004: Explicitly enable the use of init/fini array under PNaCl (Closed) Base URL: https://chromium.googlesource.com/native_client/nacl-newlib.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « newlib/libc/misc/fini.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: newlib/libc/misc/init.c
diff --git a/newlib/libc/misc/init.c b/newlib/libc/misc/init.c
index c85d6020fce96219872be3d8b245858300d54346..0abdba14b189e59f275c5fff9767c20807038723 100644
--- a/newlib/libc/misc/init.c
+++ b/newlib/libc/misc/init.c
@@ -13,7 +13,7 @@
/* Handle ELF .{pre_init,init,fini}_array sections. */
#include <sys/types.h>
-#ifdef HAVE_INITFINI_ARRAY
+#if defined(HAVE_INITFINI_ARRAY) || defined(__pnacl__)
/* These magic symbols are provided by the linker. */
extern void (*__preinit_array_start []) (void) __attribute__((weak));
« no previous file with comments | « newlib/libc/misc/fini.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698