[U-Boot] [PATCH 2/2] sh: Add KEEP order to start.o section

Nobuhiro Iwamatsu nobuhiro.iwamatsu.yj at renesas.com
Mon Mar 7 08:50:58 CET 2011


The start.o section is changed by --gc-section option of ld.
Of this using KEEP order, therefore, evade this problem.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj at renesas.com>
---
 arch/sh/cpu/sh2/u-boot.lds |    2 +-
 arch/sh/cpu/sh3/u-boot.lds |    2 +-
 arch/sh/cpu/sh4/u-boot.lds |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/sh/cpu/sh2/u-boot.lds b/arch/sh/cpu/sh2/u-boot.lds
index e4e8b60..7c0a18d 100644
--- a/arch/sh/cpu/sh2/u-boot.lds
+++ b/arch/sh/cpu/sh2/u-boot.lds
@@ -38,7 +38,7 @@ SECTIONS
 
 	.text :
 	{
-		arch/sh/cpu/sh2/start.o		(.text)
+		KEEP(arch/sh/cpu/sh2/start.o	(.text))
 		. = ALIGN(8192);
 		common/env_embedded.o	(.ppcenv)
 		. = ALIGN(8192);
diff --git a/arch/sh/cpu/sh3/u-boot.lds b/arch/sh/cpu/sh3/u-boot.lds
index 8afe160..2716246 100644
--- a/arch/sh/cpu/sh3/u-boot.lds
+++ b/arch/sh/cpu/sh3/u-boot.lds
@@ -44,7 +44,7 @@ SECTIONS
 
 	.text :
 	{
-		arch/sh/cpu/sh3/start.o		(.text)
+		KEEP(arch/sh/cpu/sh3/start.o	(.text))
 		. = ALIGN(8192);
 		common/env_embedded.o	(.ppcenv)
 		. = ALIGN(8192);
diff --git a/arch/sh/cpu/sh4/u-boot.lds b/arch/sh/cpu/sh4/u-boot.lds
index d3719df..0f42325 100644
--- a/arch/sh/cpu/sh4/u-boot.lds
+++ b/arch/sh/cpu/sh4/u-boot.lds
@@ -41,7 +41,7 @@ SECTIONS
 
 	.text :
 	{
-		arch/sh/cpu/sh4/start.o		(.text)
+		KEEP(arch/sh/cpu/sh4/start.o		(.text))
 		. = ALIGN(8192);
 		common/env_embedded.o	(.ppcenv)
 		. = ALIGN(8192);
-- 
1.7.4.1



More information about the U-Boot mailing list