aboutsummaryrefslogtreecommitdiffstats
path: root/nand_spl/board/freescale/mpc8313erdb/u-boot.lds
diff options
context:
space:
mode:
Diffstat (limited to 'nand_spl/board/freescale/mpc8313erdb/u-boot.lds')
-rw-r--r--nand_spl/board/freescale/mpc8313erdb/u-boot.lds4
1 files changed, 3 insertions, 1 deletions
diff --git a/nand_spl/board/freescale/mpc8313erdb/u-boot.lds b/nand_spl/board/freescale/mpc8313erdb/u-boot.lds
index 138e42765f..f1649f84bd 100644
--- a/nand_spl/board/freescale/mpc8313erdb/u-boot.lds
+++ b/nand_spl/board/freescale/mpc8313erdb/u-boot.lds
@@ -39,8 +39,10 @@ SECTIONS
*(.sdata*)
_GOT2_TABLE_ = .;
KEEP(*(.got2))
- __got2_entries = (. - _GOT2_TABLE_) >> 2;
+ KEEP(*(.got))
+ PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
}
+ __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
. = ALIGN(8);
__bss_start = .;