Patchwork [U-Boot,v5,3/6] SMDK6400: Fix the mutiple link error

login
register
mail settings
Submitter seedshope
Date Jan. 22, 2011, 8:06 p.m.
Message ID <1295726774-5899-4-git-send-email-bocui107@gmail.com>
Download mbox | patch
Permalink /patch/80016/
State Accepted
Delegated to: Minkyu Kang
Headers show

Comments

seedshope - Jan. 22, 2011, 8:06 p.m.
The first, the cpu_init.o have already been link for cmd_link_o_target
atfer compile, But, The link script re-link the point file. So the link
machine will generate multiple definition error information.

The second, Since the first 4kB of nand boot featue code move to nand_spl,
So It is not necessary to force the cpu_init.o in non-nand boot.

Signed-off-by: Zhong Hongbo <bocui107@gmail.com>
Minkyu Kang - Feb. 17, 2011, 2:39 a.m.
On 23 January 2011 05:06, seedshope <bocui107@gmail.com> wrote:
> The first, the cpu_init.o have already been link for cmd_link_o_target
> atfer compile, But, The link script re-link the point file. So the link
> machine will generate multiple definition error information.
>
> The second, Since the first 4kB of nand boot featue code move to nand_spl,
> So It is not necessary to force the cpu_init.o in non-nand boot.
>
> Signed-off-by: Zhong Hongbo <bocui107@gmail.com>
>

applied to u-boot-samsung

Thanks
Minkyu Kang

Patch

diff --git a/board/samsung/smdk6400/u-boot-nand.lds b/board/samsung/smdk6400/u-boot-nand.lds
index 6771981..6bf4971 100644
--- a/board/samsung/smdk6400/u-boot-nand.lds
+++ b/board/samsung/smdk6400/u-boot-nand.lds
@@ -35,7 +35,6 @@  SECTIONS
 	.text      :
 	{
 	  arch/arm/cpu/arm1176/start.o	(.text)
-	  arch/arm/cpu/arm1176/s3c64xx/cpu_init.o	(.text)
 	  *(.text)
 	}