]> git.sur5r.net Git - u-boot/commitdiff
arm: Fixed the offset for the no relocation.
authorZhong Hongbo <bocui107@gmail.com>
Sat, 1 Sep 2012 20:49:52 +0000 (20:49 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 4 Oct 2012 14:41:15 +0000 (16:41 +0200)
When the u-boot address of destination equal to  __start,
no relocation. relocation offset(r9) = 0.

Signed-off-by: Zhong Hongbo <bocui107@gmail.com>
Tested-by: Stefano Babic <sbabic@denx.de>
12 files changed:
arch/arm/cpu/arm1136/start.S
arch/arm/cpu/arm1176/start.S
arch/arm/cpu/arm920t/start.S
arch/arm/cpu/arm925t/start.S
arch/arm/cpu/arm926ejs/start.S
arch/arm/cpu/arm946es/start.S
arch/arm/cpu/arm_intcm/start.S
arch/arm/cpu/ixp/start.S
arch/arm/cpu/lh7a40x/start.S
arch/arm/cpu/pxa/start.S
arch/arm/cpu/s3c44b0/start.S
arch/arm/cpu/sa1100/start.S

index 2483c63efb2d7d9c1dab75b4790c00b7fdf691e2..3752af9ddd15bb91953f833a7c8698a082992de2 100644 (file)
@@ -190,6 +190,7 @@ stack_setup:
 
        adr     r0, _start
        cmp     r0, r6
+       moveq   r9, #0          /* no relocation. relocation offset(r9) = 0 */
        beq     clear_bss               /* skip relocation */
        mov     r1, r6                  /* r1 <- scratch for copy_loop */
        ldr     r3, _bss_start_ofs
index d61364109ee99d971c4e3014d7214e924ec608b8..667a0e0c48631b1f34c5fec04d1e994abae390ae 100644 (file)
@@ -252,6 +252,7 @@ stack_setup:
 
        adr     r0, _start
        cmp     r0, r6
+       moveq   r9, #0          /* no relocation. relocation offset(r9) = 0 */
        beq     clear_bss               /* skip relocation */
        mov     r1, r6                  /* r1 <- scratch for copy_loop */
        ldr     r3, _bss_start_ofs
index 9b8604e907eed5b43f5a79a4b6a833afb41bcf87..14c9156c084aebacdebb12ce0fa44e07cd940627 100644 (file)
@@ -210,6 +210,7 @@ stack_setup:
 
        adr     r0, _start
        cmp     r0, r6
+       moveq   r9, #0          /* no relocation. relocation offset(r9) = 0 */
        beq     clear_bss               /* skip relocation */
        mov     r1, r6                  /* r1 <- scratch for copy_loop */
        ldr     r3, _bss_start_ofs
index 1a544168669a2a8c1acffbcb7f8cebb42a3a55a7..3a483f6caef858e76aa7b89ce1ad8accb5dc2db7 100644 (file)
@@ -204,6 +204,7 @@ stack_setup:
 
        adr     r0, _start
        cmp     r0, r6
+       moveq   r9, #0          /* no relocation. relocation offset(r9) = 0 */
        beq     clear_bss               /* skip relocation */
        mov     r1, r6                  /* r1 <- scratch for copy_loop */
        ldr     r3, _bss_start_ofs
index 521d46290cfb47fdeb8dd1071ad1cdf187141b1e..2188f7e35d1df8de3bce8d9ccadea6e60bc89b46 100644 (file)
@@ -236,6 +236,7 @@ stack_setup:
        adr     r0, _start
        sub     r9, r6, r0              /* r9 <- relocation offset */
        cmp     r0, r6
+       moveq   r9, #0          /* no relocation. relocation offset(r9) = 0 */
        beq     clear_bss               /* skip relocation */
        mov     r1, r6                  /* r1 <- scratch for copy loop */
        ldr     r3, _bss_start_ofs
index b4d1d2dd1c6f8e701ad51e97e0310109362f8295..30e21835cc8759c6947ab1e46fc367f6a728e2f0 100644 (file)
@@ -175,6 +175,7 @@ stack_setup:
 
        adr     r0, _start
        cmp     r0, r6
+       moveq   r9, #0          /* no relocation. relocation offset(r9) = 0 */
        beq     clear_bss               /* skip relocation */
        mov     r1, r6                  /* r1 <- scratch for copy_loop */
        ldr     r3, _bss_start_ofs
index b85e7d442741a77eabf477ab406a0b5032ec0ffe..a133d19bc88f863c6b5c036133ff3eec7d548fba 100644 (file)
@@ -171,6 +171,7 @@ stack_setup:
 
        adr     r0, _start
        cmp     r0, r6
+       moveq   r9, #0          /* no relocation. relocation offset(r9) = 0 */
        beq     clear_bss               /* skip relocation */
        mov     r1, r6                  /* r1 <- scratch for copy_loop */
        ldr     r3, _bss_start_ofs
index 59c359a353fe483bcfc92fa896eca343455e7009..c12f1a7db8a5bb99c78ccaaf7f7ef4bd53245704 100644 (file)
@@ -273,6 +273,7 @@ stack_setup:
 
        adr     r0, _start
        cmp     r0, r6
+       moveq   r9, #0          /* no relocation. relocation offset(r9) = 0 */
        beq     clear_bss               /* skip relocation */
        mov     r1, r6                  /* r1 <- scratch for copy_loop */
        ldr     r3, _bss_start_ofs
index bd68cd47cf0131ee1b01f94e0970b320396eef9b..33b9269c7055cbd794e5758c22a2242fdc5f2c82 100644 (file)
@@ -184,6 +184,7 @@ stack_setup:
 
        adr     r0, _start
        cmp     r0, r6
+       moveq   r9, #0          /* no relocation. relocation offset(r9) = 0 */
        beq     clear_bss               /* skip relocation */
        mov     r1, r6                  /* r1 <- scratch for copy_loop */
        ldr     r3, _bss_start_ofs
index 33c73f67b57fbf6b9f5683f1dafb2134fd2a244f..536cf5c9748824aee06097f1304e92ab7f557305 100644 (file)
@@ -197,6 +197,7 @@ stack_setup:
 
        adr     r0, _start
        cmp     r0, r6
+       moveq   r9, #0          /* no relocation. relocation offset(r9) = 0 */
        beq     clear_bss               /* skip relocation */
        mov     r1, r6                  /* r1 <- scratch for copy_loop */
        ldr     r3, _bss_start_ofs
index 8daf26c4f033ddad242ee63876ca9f3bff7cbfb1..323b923f13da6003785247ab9324205238c883fe 100644 (file)
@@ -156,6 +156,7 @@ stack_setup:
 
        adr     r0, _start
        cmp     r0, r6
+       moveq   r9, #0          /* no relocation. relocation offset(r9) = 0 */
        beq     clear_bss               /* skip relocation */
        mov     r1, r6                  /* r1 <- scratch for copy_loop */
        ldr     r3, _bss_start_ofs
index bcea2a8debca38a31f06baecb75c333beee14a19..1ea92d14567a86ea728c3fc623816935a0455f88 100644 (file)
@@ -160,6 +160,7 @@ stack_setup:
 
        adr     r0, _start
        cmp     r0, r6
+       moveq   r9, #0          /* no relocation. relocation offset(r9) = 0 */
        beq     clear_bss               /* skip relocation */
        mov     r1, r6                  /* r1 <- scratch for copy_loop */
        ldr     r3, _bss_start_ofs