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:
authorClaudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>2017-05-23 16:05:49 +0300
committerCorinna Vinschen <corinna@vinschen.de>2017-06-14 15:51:22 +0300
commit0d79b021a4ec4e6b9aa1a9f6db0e29a137005ce7 (patch)
treef1cb730ffb59575b7e606f9399439b5dfbb1058f /libgloss/arc
parent8c8b25e38869eca5e611b7bb48b7d465c1a80b73 (diff)
Add JLI support.
Initialize the jli_base registers for ARCv2 cpus. libgloss/ 2017-05-23 Claudiu Zissulescu <claziss@synopsys.com> * arc/crt0.S: Initialize the jli_base registers for ARCv2 cpus.
Diffstat (limited to 'libgloss/arc')
-rw-r--r--libgloss/arc/crt0.S7
1 files changed, 6 insertions, 1 deletions
diff --git a/libgloss/arc/crt0.S b/libgloss/arc/crt0.S
index f8d7148d6..46c9efd71 100644
--- a/libgloss/arc/crt0.S
+++ b/libgloss/arc/crt0.S
@@ -142,6 +142,11 @@ __start:
bset r2, r2, 19
flag r2
#endif
+
+#if defined (__ARC_CODE_DENSITY__)
+ ;; Initialize jli_base
+ sr @__JLI_TABLE__,[jli_base]
+#endif
mov gp, @__SDATA_BEGIN__
mov_s r2, @__sbss_start ; r2 = start of the bss section
sub r3, @_end, r2 ; r3 = size of the bss section in bytes
@@ -189,7 +194,7 @@ __start:
mov_s r0, 1
st_s r0, [r1, 4] ; _GLOBAL_REENT->atexit0._ind
; branch to _init
-#if defined (__EM__) || defined (__HS__)
+#if defined (__ARCEM__) || defined (__ARCHS__)
jl @_init
#else
bl @_init