mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 03:27:46 +08:00
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.
This commit is contained in:
parent
8c8b25e388
commit
0d79b021a4
@ -142,6 +142,11 @@ __start:
|
|||||||
bset r2, r2, 19
|
bset r2, r2, 19
|
||||||
flag r2
|
flag r2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (__ARC_CODE_DENSITY__)
|
||||||
|
;; Initialize jli_base
|
||||||
|
sr @__JLI_TABLE__,[jli_base]
|
||||||
|
#endif
|
||||||
mov gp, @__SDATA_BEGIN__
|
mov gp, @__SDATA_BEGIN__
|
||||||
mov_s r2, @__sbss_start ; r2 = start of the bss section
|
mov_s r2, @__sbss_start ; r2 = start of the bss section
|
||||||
sub r3, @_end, r2 ; r3 = size of the bss section in bytes
|
sub r3, @_end, r2 ; r3 = size of the bss section in bytes
|
||||||
@ -189,7 +194,7 @@ __start:
|
|||||||
mov_s r0, 1
|
mov_s r0, 1
|
||||||
st_s r0, [r1, 4] ; _GLOBAL_REENT->atexit0._ind
|
st_s r0, [r1, 4] ; _GLOBAL_REENT->atexit0._ind
|
||||||
; branch to _init
|
; branch to _init
|
||||||
#if defined (__EM__) || defined (__HS__)
|
#if defined (__ARCEM__) || defined (__ARCHS__)
|
||||||
jl @_init
|
jl @_init
|
||||||
#else
|
#else
|
||||||
bl @_init
|
bl @_init
|
||||||
|
Loading…
x
Reference in New Issue
Block a user