Skip to contentSkip to conversation

ppc4xx: Fix NAND SPL linker scripts

PATCH New Stefan Roese 1 participant 1 message Nov 23, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc4xx: Fix NAND SPL linker scripts

Without this patch, the resulting NAND SPL image (nand_spl/u-boot-spl) will be empty. We need to "keep" the resetvec with the new compiler/ linker options (--gc-sections and -ffunction-sections -fdata-sections).

---
 nand_spl/board/amcc/acadia/u-boot.lds      |    2 +-
 nand_spl/board/amcc/bamboo/u-boot.lds      |    2 +-
 nand_spl/board/amcc/canyonlands/u-boot.lds |    2 +-
 nand_spl/board/amcc/kilauea/u-boot.lds     |    2 +-
 nand_spl/board/amcc/sequoia/u-boot.lds     |    4 ++--
 5 files changed, 6 insertions(+), 6 deletions(-)
nand_spl/board/amcc/acadia/u-boot.lds +1 -1
index b89cd80..5695465 100644
@@ -26,7 +26,7 @@ SECTIONS
 {
   .resetvec 0xf8004ffc :
   {
-    *(.resetvec)
+    KEEP(*(.resetvec))
   } = 0xffff
 
   .text      :
nand_spl/board/amcc/bamboo/u-boot.lds +1 -1
index d171269..8a9e6e9 100644
@@ -26,7 +26,7 @@ SECTIONS
 {
   .resetvec 0x00800FFC :
   {
-    *(.resetvec)
+    KEEP(*(.resetvec))
   } = 0xffff
 
   .text      :
nand_spl/board/amcc/canyonlands/u-boot.lds +1 -1
index e676e0c..73190cd 100644
@@ -26,7 +26,7 @@ SECTIONS
 {
   .resetvec 0xE3003FFC :
   {
-    *(.resetvec)
+    KEEP(*(.resetvec))
   } = 0xffff
 
   .text      :
nand_spl/board/amcc/kilauea/u-boot.lds +1 -1
index 5a586fc..9894a10 100644
@@ -26,7 +26,7 @@ SECTIONS
 {
   .resetvec 0x00800FFC :
   {
-    *(.resetvec)
+    KEEP(*(.resetvec))
   } = 0xffff
 
   .text      :
nand_spl/board/amcc/sequoia/u-boot.lds +2 -2
index 1601c36..c81ce68 100644
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2006
+ * (C) Copyright 2006-2010
  * Stefan Roese, DENX Software Engineering, sr at denx.de.
  *
  * See file CREDITS for list of people who contributed to this
@@ -26,7 +26,7 @@ SECTIONS
 {
   .resetvec 0xE0013FFC :
   {
-    *(.resetvec)
+    KEEP(*(.resetvec))
   } = 0xffff
 
   .text      :
Signature · 1 line
1.7.3.2