]> git.wh0rd.org Git - elf2flt.git/commit
This patch adds support for .preinit_array, .init_array and .fini_array
authorDavid McCullough <davidm@snapgear.com>
Thu, 23 Mar 2006 23:06:49 +0000 (23:06 +0000)
committerDavid McCullough <davidm@snapgear.com>
Thu, 23 Mar 2006 23:06:49 +0000 (23:06 +0000)
commitbfb08d44f34f9dda67b303fd68f1441bc0edc85e
tree32966f438bf341f017a0a1d269dcc595d2b06613
parentff84934376a2ab5dbc38668040a751e52053eaf6
This patch adds support for .preinit_array, .init_array and .fini_array
to the elf2flt linker script.  This seems useful in itself, and is
actually required for recent versions of uclibc, where UCLIBC_CTOR_DTOR=y
depends on the associated array symbols being defined.

Tested on m68k-uclinux using the gcc and g++ DejaGNU testsuites.  I also
ran some tests by hand to make sure that callbacks in the array sections
were being called at the right time.  Please install if OK.

Richard

Signed-off-by: Richard Sandiford <richard@codesourcery.com>
elf2flt.ld