From f7a74742e69119d7133c8d9619ae94175faed068 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 7 Jan 2005 18:04:39 +0000 Subject: 2005-01-07 Paul Brook * configure.in: Add test for .init_array. * configure: Regenerate. * newlib.hin: Add HAVE_INITFINI_ARRAY. * libc/misc/Makefile.am: Add init.c * libc/misc/Makefile.in: Regenerate. * libc/misc/init.c: New file. * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of _init/_fini if they exist. --- newlib/newlib.hin | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'newlib/newlib.hin') diff --git a/newlib/newlib.hin b/newlib/newlib.hin index cb6f96d58..b1b6f051d 100644 --- a/newlib/newlib.hin +++ b/newlib/newlib.hin @@ -137,5 +137,9 @@ #undef _ICONV_FROM_ENCODING_WIN_1257 #undef _ICONV_FROM_ENCODING_WIN_1258 +/* Define if the linker supports .preinit_array/.init_array/.fini_array + * sections. */ +#undef HAVE_INITFINI_ARRAY + #endif /* !__NEWLIB_H__ */ -- cgit v1.2.3