]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sh: Add KEEP order to start.o section
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Mon, 7 Mar 2011 07:36:21 +0000 (16:36 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Wed, 16 Mar 2011 01:16:34 +0000 (10:16 +0900)
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@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/sh/cpu/sh2/u-boot.lds
arch/sh/cpu/sh3/u-boot.lds
arch/sh/cpu/sh4/u-boot.lds

index e4e8b606960efbf6fefcd0ddfa9908dc6d36fe5f..7c0a18d62c9975ea81a77f8a47e002f6426faac0 100644 (file)
@@ -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);
index 8afe1603ee41184faa09c3f7b72a36b043eb157e..271624636b31c7d9d100d37e1c74782298ea9dea 100644 (file)
@@ -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);
index d3719df543c500d768adfeae9da536a3a35a8a19..0f42325afffbf1b5b74024873895f6c70331cd71 100644 (file)
@@ -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);