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:
Diffstat (limited to 'libgloss/cris/crt0.S')
-rw-r--r--libgloss/cris/crt0.S9
1 files changed, 8 insertions, 1 deletions
diff --git a/libgloss/cris/crt0.S b/libgloss/cris/crt0.S
index 74c159415..30419887e 100644
--- a/libgloss/cris/crt0.S
+++ b/libgloss/cris/crt0.S
@@ -1,5 +1,5 @@
/* Generic simplistic start-up-stub for CRIS/CRISv32.
- Copyright (C) 1993-2005, 2007 Axis Communications.
+ Copyright (C) 1993-2005, 2007, 2017 Axis Communications.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -26,6 +26,8 @@
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE. */
+#include "newlib.h"
+
#undef cris
#undef L
#ifdef __NO_UNDERSCORES__
@@ -34,6 +36,11 @@
#define L(x) _ ## x
#endif
+#ifdef HAVE_INITFINI_ARRAY
+#define _init __libc_init_array
+#define _fini __libc_fini_array
+#endif
+
; Rudimentary v0..v32-compatible startup stub.
#ifdef __ELF__