]> git.sur5r.net Git - u-boot/commitdiff
SMDKV310: Fix undefined reference error
authorChander Kashyap <chander.kashyap@linaro.org>
Mon, 25 Jul 2011 23:25:16 +0000 (23:25 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 3 Sep 2011 20:40:47 +0000 (22:40 +0200)
Fix buld error:
undefined reference to '__image_copy_end' and `save_boot_params'.

start.o: In function `_image_copy_end_ofs':
mmc_spl/board/samsung/smdkv310/start.S:44: undefined reference to `__image_copy_end'
start.o: In function `reset':
mmc_spl/board/samsung/smdkv310/start.S:137: undefined reference to `save_boot_params'

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
mmc_spl/board/samsung/smdkv310/mmc_boot.c
mmc_spl/board/samsung/smdkv310/u-boot.lds

index 566f34eb024db2e09d105a59a8756362fd6e63fb..dea1b869faeb3e5b3111fda6c1f259a17c24dc54 100644 (file)
@@ -54,6 +54,10 @@ void board_init_r(gd_t *id, ulong dest_addr)
                ;
 }
 
+void save_boot_params(u32 r0, u32 r1, u32 r2, u32 r3)
+{
+}
+
 void do_undefined_instruction(struct pt_regs *pt_regs)
 {
 }
index 61cd16a71cd487ce4f0e5b1f3d0886623f2b1230..4a231d9df34897a318b7d953d57181b8d454dee8 100644 (file)
@@ -58,6 +58,8 @@ SECTIONS
 
        . = ALIGN(4);
 
+       __image_copy_end = .;
+
        .rel.dyn : {
                __rel_dyn_start = .;
                *(.rel*)