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

Unified Diff: newlib/libc/misc/fini.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 | « no previous file | newlib/libc/misc/init.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: newlib/libc/misc/fini.c
diff --git a/newlib/libc/misc/fini.c b/newlib/libc/misc/fini.c
index ab4203bf870b452c0f73232389a7f615e972101c..d85ac76978b4d3ed0a99cb9985282ec3c817d876 100644
--- a/newlib/libc/misc/fini.c
+++ b/newlib/libc/misc/fini.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__)
extern void (*__fini_array_start []) (void) __attribute__((weak));
extern void (*__fini_array_end []) (void) __attribute__((weak));
« no previous file with comments | « no previous file | newlib/libc/misc/init.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698