]> git.sur5r.net Git - u-boot/blobdiff - nand_spl/board/freescale/mpc8315erdb/u-boot.lds
Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master'
[u-boot] / nand_spl / board / freescale / mpc8315erdb / u-boot.lds
index 138e42765f1cd3da89381101e5a2f87feb82e242..870b47d6af4ab910e60f6ea407c19a2260c4e4ef 100644 (file)
@@ -39,15 +39,17 @@ 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 = .;
        .bss (NOLOAD) : {
                *(.*bss)
        }
-       _end = .;
+       __bss_end = .;
 }
 ENTRY(_start)
-ASSERT(_end <= 0xfff01000, "NAND bootstrap too big");
+ASSERT(__bss_end <= 0xfff01000, "NAND bootstrap too big");