diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2005-01-07 21:04:39 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2005-01-07 21:04:39 +0300 |
commit | f7a74742e69119d7133c8d9619ae94175faed068 (patch) | |
tree | 526a24a1f892045b2e52bec5a0ee8ba743ee32be /newlib/libc/sys | |
parent | 35310094a18515e7b0be818abbff262f6718f849 (diff) |
2005-01-07 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/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.
Diffstat (limited to 'newlib/libc/sys')
-rw-r--r-- | newlib/libc/sys/arm/crt0.S | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libc/sys/arm/crt0.S b/newlib/libc/sys/arm/crt0.S index 5772228aa..00a037a0d 100644 --- a/newlib/libc/sys/arm/crt0.S +++ b/newlib/libc/sys/arm/crt0.S @@ -1,3 +1,4 @@ +#include "newlib.h" #include "swi.h" /* ANSI concatenation macros. */ @@ -10,6 +11,11 @@ #error __USER_LABEL_PREFIX is not defined #endif +#ifdef HAVE_INITFINI_ARRAY +#define _init __libc_init_array +#define _fini __libc_fini_array +#endif + /* .text is used instead of .section .text so it works with arm-aout too. */ .text .code 32 |