From 76abfa57817ada6d4119056097cc32610343fd90 Mon Sep 17 00:00:00 2001 From: Zhong Hongbo Date: Sat, 1 Sep 2012 20:49:52 +0000 Subject: arm: Fixed the offset for the no relocation. When the u-boot address of destination equal to __start, no relocation. relocation offset(r9) = 0. Signed-off-by: Zhong Hongbo Tested-by: Stefano Babic --- arch/arm/cpu/arm1136/start.S | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/arm/cpu/arm1136/start.S') diff --git a/arch/arm/cpu/arm1136/start.S b/arch/arm/cpu/arm1136/start.S index 2483c63..3752af9 100644 --- a/arch/arm/cpu/arm1136/start.S +++ b/arch/arm/cpu/arm1136/start.S @@ -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 -- cgit v1.1