]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/armv7/start.S
Use the actual code start address for relocation
[karo-tx-uboot.git] / 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 */