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/nds32/crt0.S')
-rw-r--r--libgloss/nds32/crt0.S6
1 files changed, 2 insertions, 4 deletions
diff --git a/libgloss/nds32/crt0.S b/libgloss/nds32/crt0.S
index 30092e001..5f56e9a50 100644
--- a/libgloss/nds32/crt0.S
+++ b/libgloss/nds32/crt0.S
@@ -94,8 +94,7 @@ _start:
movi $r0, 0
movi $r1, 0
/* Call 'main'. */
- la $r15, main
- jral $r15
+ bal main
.L_terminate_program:
/* There are two ways to terminate program:
@@ -106,8 +105,7 @@ _start:
Currently, we use option 2 as a solution to follow C99 5.1.2.2.3,
but aware that general exit() will do some cleanup procedures
which may result in large-memory-footprints. */
- la $r15, exit
- jral $r15
+ bal exit
.L_forever_loop:
/* Should never return here. */