[U-Boot] [PATCH 17/28] nios2: define text_base in start.S for linker script

Thomas Chou thomas at wytron.com.tw
Fri Mar 19 08:43:42 CET 2010


We will remove the TEXT_BASE def in board config.mk.
And compute the text base in board config header file.

Signed-off-by: Thomas Chou <thomas at wytron.com.tw>
---
 cpu/nios2/start.S |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/cpu/nios2/start.S b/cpu/nios2/start.S
index 31cd5b0..4b4c560 100644
--- a/cpu/nios2/start.S
+++ b/cpu/nios2/start.S
@@ -26,6 +26,12 @@
 #include <timestamp.h>
 #include <version.h>
 
+#ifdef CONFIG_SYS_TEXT_BASE
+	/* text base used in link script u-boot.lds */
+	.global text_base
+	.equ text_base,CONFIG_SYS_TEXT_BASE
+#endif
+
 /*************************************************************************
  * RESTART
  ************************************************************************/
-- 
1.6.6.1



More information about the U-Boot mailing list