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:
authorDavid Hoover <spm2@dangerous.li>2016-04-21 08:12:24 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-04-21 10:51:08 +0300
commit5c9403eaf40951f8a4f55ed65f661b485ff44be7 (patch)
tree1e2dde9e065ad8795c5839b53240ff8d2ed72e25 /libgloss/arm
parent60f867812c4f0aa5240c4b228eb8fd0475c7c674 (diff)
Fixed semihosting for ARM when heapinfo not provided by debugger.
Diffstat (limited to 'libgloss/arm')
-rw-r--r--libgloss/arm/crt0.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgloss/arm/crt0.S b/libgloss/arm/crt0.S
index 7c662f915..35c306be0 100644
--- a/libgloss/arm/crt0.S
+++ b/libgloss/arm/crt0.S
@@ -125,9 +125,11 @@
/* Set __heap_limit. */
ldr r1, [r0, #4]
+ cmp r1, #0
+ beq .LC33
ldr r2, =__heap_limit
str r1, [r2]
-
+.LC33:
ldr r1, [r0, #0]
cmp r1, #0
bne .LC32