[patch, arm] Add support for .init_array

Paul Brook paul@codesourcery.com
Wed Dec 8 17:56:00 GMT 2004

The Arm eabi requires the use of the .init_array section for running static 
constructors. The attached patch implements the required startup code for 
running these.

Tested with cross to arm-none-eabi and arm-none-elf.


2004-12-08  Paul Brook  <paul@codesourcery.com>

 * configure.in: Add test for .init_array.
 * configure: Regenerate.
 * newlib.hin: Add HAVE_INITFINI_ARRAY.
 * libc/misc/Makefile.am: Add init.c
 * libc/misc/Makernel.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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.newlib_initarray
Type: text/x-diff
Size: 7554 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20041208/07bfdea9/attachment.bin>

More information about the Newlib mailing list