]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: use _start instead of __image_copy_start
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 22 Aug 2013 14:08:10 +0000 (16:08 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 22 Aug 2013 14:08:10 +0000 (16:08 +0200)
TX53 creates an FCB at the start of the ELF image. This offsets _start
from __image_copy_start leading to relocation errors.

Temporary fix this by using _start instead of __image_copy_start.
A better fix would be to implement a 'romupdate' command, that takes
care of creating the FCB at runtime.

arch/arm/lib/relocate.S

index ab90430dced64897e60c63cc739bd36a9f4cc52e..90d612fd64db90e926fbd5764ad88ad9ab19ed23 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 ENTRY(relocate_code)
-       ldr     r1, =__image_copy_start /* r1 <- SRC &__image_copy_start */
+       ldr     r1, =_start     /* r1 <- SRC &__image_copy_start */
        subs    r9, r0, r1              /* r9 <- relocation offset */
        beq     relocate_done           /* skip relocation */
        ldr     r2, =__image_copy_end   /* r2 <- SRC &__image_copy_end */