Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-01-07 21:01:26 +0300
committerJeff Johnston <jjohnstn@redhat.com>2005-01-07 21:01:26 +0300
commit35310094a18515e7b0be818abbff262f6718f849 (patch)
tree0443987a95822750df57e8c89e742dbf8d35c10b /libgloss/arm/crt0.S
parenta3acb4a5ce88f50fe61e634448759ec8baee705b (diff)
2005-01-07 Paul Brook <paul@codesourcery.com>
* arm/crt0.S: Call __libc_{init,fini}_array instead of _init/_fini if they exist.
Diffstat (limited to 'libgloss/arm/crt0.S')
-rw-r--r--libgloss/arm/crt0.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgloss/arm/crt0.S b/libgloss/arm/crt0.S
index b5633368d..33bcc3a4b 100644
--- a/libgloss/arm/crt0.S
+++ b/libgloss/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