[U-Boot] [PATCH 1/2] powerpc: fix mpc8315erdb and mpc8313erdb NAND linker script
Joakim Tjernlund
Joakim.Tjernlund at transmode.se
Mon Nov 22 09:13:17 CET 2010
You cannot use _GOT2_TABLE_ within its defintion. Move
__got2_entries outside _GOT2_TABLE_ defining scope.
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at 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 --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 = .;
--
1.7.2.2
More information about the U-Boot
mailing list