Patchwork [U-Boot,v5,4/6] SMDK6400: Add some labels to u-boot.lds to support nand_spl

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

Comments

seedshope - Jan. 22, 2011, 8:06 p.m.
In the nand_spl feature of SMDK6400. Add some relocation symbols to
nand_spl/board/samsung/smdk6400/u-boot.lds to fix the compile error.

Signed-off-by: Zhong Hongbo <bocui107@gmail.com>
Minkyu Kang - Feb. 17, 2011, 2:40 a.m.
On 23 January 2011 05:06, seedshope <bocui107@gmail.com> wrote:
> In the nand_spl feature of SMDK6400. Add some relocation symbols to
> nand_spl/board/samsung/smdk6400/u-boot.lds to fix the compile error.
>
> Signed-off-by: Zhong Hongbo <bocui107@gmail.com>
>
applied to u-boot-samsung

Thanks
Minkyu Kang

Patch

diff --git a/nand_spl/board/samsung/smdk6400/u-boot.lds b/nand_spl/board/samsung/smdk6400/u-boot.lds
index 3ac6aa1..30b1573 100644
--- a/nand_spl/board/samsung/smdk6400/u-boot.lds
+++ b/nand_spl/board/samsung/smdk6400/u-boot.lds
@@ -55,7 +55,22 @@  SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+
+	.rel.dyn : {
+	__rel_dyn_start = .;
+	*(.rel*)
+	__rel_dyn_end = .;
+	}
+
+	.dynsym : {
+	__dynsym_start = .;
+	*(.dynsym)
+	}
+
+	.bss __rel_dyn_start (OVERLAY) : {
 	__bss_start = .;
-	.bss : { *(.bss) . = ALIGN(4); }
+	*(.bss)
+	. = ALIGN(4);
 	_end = .;
+	}
 }