* [U-Boot] [PATCH] nds32: Use sections header to obtain link symbols
@ 2013-04-23 17:47 ken kuo
2013-05-08 4:45 ` Macpaul Lin
0 siblings, 1 reply; 2+ messages in thread
From: ken kuo @ 2013-04-23 17:47 UTC (permalink / raw)
To: u-boot
From: Kuan-Yu Kuo <ken.kuoky@gmail.com>
Include this header to get access to link symbols, which are otherwise
removed.
Signed-off-by: Kuan-Yu Kuo <ken.kuoky@gmail.com>
Cc: Macpaul Lin <macpaul@gmail.com>
---
arch/nds32/include/asm/u-boot-nds32.h | 5 -----
arch/nds32/lib/board.c | 3 ++-
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/arch/nds32/include/asm/u-boot-nds32.h b/arch/nds32/include/asm/u-boot-nds32.h
index f3c7b27..d22eb5b 100644
--- a/arch/nds32/include/asm/u-boot-nds32.h
+++ b/arch/nds32/include/asm/u-boot-nds32.h
@@ -30,11 +30,6 @@
#define _U_BOOT_NDS32_H_ 1
/* for the following variables, see start.S */
-extern char __bss_start[]; /* BSS start relative to _start */
-extern ulong __bss_end; /* BSS end relative to _start */
-extern char _end[]; /* end of image relative to _start */
-extern void _start(void); /* start of image relative to _start */
-extern ulong _TEXT_BASE; /* code start */
extern ulong IRQ_STACK_START; /* top of IRQ stack */
extern ulong FIQ_STACK_START; /* top of FIQ stack */
diff --git a/arch/nds32/lib/board.c b/arch/nds32/lib/board.c
index a7d27fc..340d157 100644
--- a/arch/nds32/lib/board.c
+++ b/arch/nds32/lib/board.c
@@ -36,6 +36,7 @@
#include <nand.h>
#include <onenand_uboot.h>
#include <mmc.h>
+#include <asm/sections.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -300,7 +301,7 @@ void board_init_r(gd_t *id, ulong dest_addr)
gd->flags |= GD_FLG_RELOC; /* tell others: relocation done */
- monitor_flash_len = &_end - &_start;
+ monitor_flash_len = (ulong)&_end - (ulong)&_start;
debug("monitor flash len: %08lX\n", monitor_flash_len);
board_init(); /* Setup chipselects */
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] nds32: Use sections header to obtain link symbols
2013-04-23 17:47 [U-Boot] [PATCH] nds32: Use sections header to obtain link symbols ken kuo
@ 2013-05-08 4:45 ` Macpaul Lin
0 siblings, 0 replies; 2+ messages in thread
From: Macpaul Lin @ 2013-05-08 4:45 UTC (permalink / raw)
To: u-boot
Hi Ken,
2013/4/24 ken kuo <ken.kuoky@gmail.com>
>
> From: Kuan-Yu Kuo <ken.kuoky@gmail.com>
>
> Include this header to get access to link symbols, which are otherwise
> removed.
>
> Signed-off-by: Kuan-Yu Kuo <ken.kuoky@gmail.com>
> Cc: Macpaul Lin <macpaul@gmail.com>
This link script fix has been applied to u-boot-nds32.git.
Thanks!
--
Best regards,
Macpaul Lin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-08 4:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-23 17:47 [U-Boot] [PATCH] nds32: Use sections header to obtain link symbols ken kuo
2013-05-08 4:45 ` Macpaul Lin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.