diff mbox

[U-Boot,1/2] powerpc: fix mpc8315erdb and mpc8313erdb NAND linker script

Message ID 1290413598-6081-1-git-send-email-Joakim.Tjernlund@transmode.se
State Superseded
Delegated to: Kim Phillips
Headers show

Commit Message

Joakim Tjernlund Nov. 22, 2010, 8:13 a.m. UTC
You cannot use _GOT2_TABLE_ within its defintion. Move
__got2_entries outside _GOT2_TABLE_ defining scope.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
---
 nand_spl/board/freescale/mpc8313erdb/u-boot.lds |    2 +-
 nand_spl/board/freescale/mpc8315erdb/u-boot.lds |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/nand_spl/board/freescale/mpc8313erdb/u-boot.lds b/nand_spl/board/freescale/mpc8313erdb/u-boot.lds
index ad82589..853b2de 100644
--- a/nand_spl/board/freescale/mpc8313erdb/u-boot.lds
+++ b/nand_spl/board/freescale/mpc8313erdb/u-boot.lds
@@ -40,8 +40,8 @@  SECTIONS
 		*(.sdata*)
 		_GOT2_TABLE_ = .;
 		*(.got2)
-		__got2_entries = (. - _GOT2_TABLE_) >> 2;
 	}
+	__got2_entries = (. - _GOT2_TABLE_) >> 2;
 
 	. = ALIGN(8);
 	__bss_start = .;
diff --git a/nand_spl/board/freescale/mpc8315erdb/u-boot.lds b/nand_spl/board/freescale/mpc8315erdb/u-boot.lds
index ad82589..853b2de 100644
--- a/nand_spl/board/freescale/mpc8315erdb/u-boot.lds
+++ b/nand_spl/board/freescale/mpc8315erdb/u-boot.lds
@@ -40,8 +40,8 @@  SECTIONS
 		*(.sdata*)
 		_GOT2_TABLE_ = .;
 		*(.got2)
-		__got2_entries = (. - _GOT2_TABLE_) >> 2;
 	}
+	__got2_entries = (. - _GOT2_TABLE_) >> 2;
 
 	. = ALIGN(8);
 	__bss_start = .;