aboutsummaryrefslogtreecommitdiff
path: root/libgloss
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-01-07 18:01:26 +0000
committerJeff Johnston <jjohnstn@redhat.com>2005-01-07 18:01:26 +0000
commit35310094a18515e7b0be818abbff262f6718f849 (patch)
tree0443987a95822750df57e8c89e742dbf8d35c10b /libgloss
parenta3acb4a5ce88f50fe61e634448759ec8baee705b (diff)
downloadnewlib-35310094a18515e7b0be818abbff262f6718f849.zip
newlib-35310094a18515e7b0be818abbff262f6718f849.tar.gz
newlib-35310094a18515e7b0be818abbff262f6718f849.tar.bz2
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')
-rw-r--r--libgloss/ChangeLog5
-rw-r--r--libgloss/arm/crt0.S6
2 files changed, 11 insertions, 0 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog
index a0d6e2d..e12d024 100644
--- a/libgloss/ChangeLog
+++ b/libgloss/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-07 Paul Brook <paul@codesourcery.com>
+
+ * arm/crt0.S: Call __libc_{init,fini}_array instead of
+ _init/_fini if they exist.
+
2004-11-26 Paul Brook <paul@codesourcery.com>
* libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
diff --git a/libgloss/arm/crt0.S b/libgloss/arm/crt0.S
index b563336..33bcc3a 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