fix relocation of R2
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 11 Dec 2013 13:00:15 +0000 (22:00 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 11 Dec 2013 13:00:15 +0000 (22:00 +0900)
ChangeLog
regnual/sys.c

index 3bd975a..0ea75d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-12-11  Niibe Yutaka  <gniibe@fsij.org>
+
+       * regnual/sys.c (entry): Fix relocation calculation.
+
 2013-11-27  Niibe Yutaka  <gniibe@fsij.org>
 
        * src/stm32f103.h (AFIO_MAPR_SWJ_CFG_DISABLE): New.
index 6b8bfda..f88f054 100644 (file)
@@ -42,7 +42,7 @@ void entry (void)
                "add    r1, r0\n\t" /* relocate bss_start */
                "ldr    r4, .L00+8\n\t"
                "ldr    r2, [r3, r4]\n"
-               "add    r1, r0\n\t" /* relocate bss_end */
+               "add    r2, r0\n\t" /* relocate bss_end */
                /* Clear BSS.  */
                "mov    r0, #0\n\t"
        "0:\n\t"