]> git.sur5r.net Git - u-boot/commitdiff
nios2: define _end in link script
authorThomas Chou <thomas@wytron.com.tw>
Sun, 6 Sep 2015 12:13:34 +0000 (20:13 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Thu, 22 Oct 2015 23:28:38 +0000 (07:28 +0800)
Since commit 44c6e6591cb451ae606f8bde71dd5fb7b4002544
"rename _end to __bss_end__" , the _end was removed.
But we need it now for separated device tree control,
ie, CONFIG_OF_SEPARATE .

The _end is used by fdtdec_setup() to find the blob.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Acked-by: Marek Vasut <marex@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/nios2/cpu/u-boot.lds

index 8b0fd1ac3a1154076153d4f35571427476bd39c8..3bd3f2c520b27408744bc610a742da4d8400d93a 100644 (file)
@@ -67,6 +67,12 @@ SECTIONS
        _edata = .;
        PROVIDE (edata = .);
 
+       /*
+        * _end - This is end of u-boot.bin image.
+        * dtb will be appended here to make u-boot-dtb.bin
+        */
+       _end = .;
+
        /* UNINIT DATA - Small uninitialized data is first so it's
         * adjacent to sdata and can be referenced via gp. The normal
         * bss follows. We keep it adjacent to simplify init code.