summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-09-08 10:33:59 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-09-08 12:42:55 +0200
commitfd18bc87c23822937fcb00005165296a526a44cb (patch)
tree99cf01c45ab90c038d1deb2c31c1df92a5019778
parent78df9a19ad1d007379829badc4d882a7051c971a (diff)
downloadbarebox-fd18bc87c23822937fcb00005165296a526a44cb.tar.gz
barebox-fd18bc87c23822937fcb00005165296a526a44cb.tar.xz
use _stext instead of TEXT_BASE
When checking if we have to relocate ourselves, use _stext instead of TEXT_BASE. TEXT_BASE might be the location of a pre image header. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/cpu/start-arm.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/start-arm.S b/arch/arm/cpu/start-arm.S
index cd0803efb4..408944ab29 100644
--- a/arch/arm/cpu/start-arm.S
+++ b/arch/arm/cpu/start-arm.S
@@ -97,7 +97,7 @@ _bss_end:
_TEXT_BASE:
- .word TEXT_BASE
+ .word _stext
_MALLOC_BASE:
.word MALLOC_BASE