]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Use the actual code start address for relocation
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 14 Jun 2012 08:42:49 +0000 (10:42 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 14 Jun 2012 08:42:49 +0000 (10:42 +0200)
arch/arm/cpu/armv7/start.S

index 261835b6c6b22266bd0e2120bd5e7c4241101581..4054e6c6e61deac4e8510ca840dac2c63cd6562a 100644 (file)
@@ -200,7 +200,7 @@ copy_loop:
        /*
         * fix .rel.dyn relocations
         */
-       ldr     r0, _TEXT_BASE          /* r0 <- Text base */
+       adr     r0, _start              /* r0 <- beginning of code */
        sub     r9, r6, r0              /* r9 <- relocation offset */
        ldr     r10, _dynsym_start_ofs  /* r10 <- sym table ofs */
        add     r10, r10, r0            /* r10 <- sym table in FLASH */