]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - nand_spl/board/sheldon/simpc8313/u-boot.lds
Merge branch 'u-boot-imx/master' into 'u-boot-arm/master'
[karo-tx-uboot.git] / nand_spl / board / sheldon / simpc8313 / u-boot.lds
index 40c414549ca71b230aa2c2d6c740a9a4a1c585dd..7ab408bb5af1c4b5f992cb79257029b33738c8ec 100644 (file)
@@ -30,8 +30,8 @@ SECTIONS
        .text : {
                *(.text*)
                . = ALIGN(16);
-               *(.rodata*)
                *(.eh_frame)
+               *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
        }
 
        . = ALIGN(8);
@@ -40,13 +40,15 @@ SECTIONS
                *(.sdata*)
                _GOT2_TABLE_ = .;
                *(.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");