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/arc/crt0.S')
-rw-r--r--libgloss/arc/crt0.S15
1 files changed, 9 insertions, 6 deletions
diff --git a/libgloss/arc/crt0.S b/libgloss/arc/crt0.S
index 1d966c211..7db07fff0 100644
--- a/libgloss/arc/crt0.S
+++ b/libgloss/arc/crt0.S
@@ -207,15 +207,18 @@ __start:
; r0 contains exit code
j @exit
- .section .text._exit_halt,"ax",@progbits
- .global _exit_halt
- .type _exit_halt, @function
+.section .text._exit_halt,"ax",@progbits
+.global _exit_halt
+.type _exit_halt, @function
_exit_halt:
; r0 contains exit code
- flag 0x01
+ flag 1
+#if defined (__ARC600__) || defined (__ARC700__)
+ ; ARCompact requires 3 nops after flag 1
nop
- nop ; ARCompact requires 3 nops after flag 1
nop
- b @_exit_halt
nop
+#endif
+ b @_exit_halt
+.balign 4