]> git.sur5r.net Git - u-boot/commitdiff
nios2: remove gp assignments in link script
authorThomas Chou <thomas@wytron.com.tw>
Sun, 6 Sep 2015 12:18:10 +0000 (20:18 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Thu, 22 Oct 2015 23:28:38 +0000 (07:28 +0800)
Since we don't use gp for small data with option "-G0",
we use gp as global data pointer. The _gp location is
not needed.

The ALIGN(16) was for gp only. It is removed, so that we
can get correct address of dtb in u-boot-dtb.bin image.

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

index 6e174be2c0c19ae41e04b3727d24cc86bef548e0..8b0fd1ac3a1154076153d4f35571427476bd39c8 100644 (file)
@@ -50,9 +50,11 @@ SECTIONS
          *(.gnu.linkonce.d*)
        }
 
-       . = ALIGN(16);
-       _gp = .;                        /* Global pointer addr */
-       PROVIDE (gp = .);
+       /*
+        * gp - Since we don't use gp for small data with option "-G0",
+        * we will use gp as global data pointer. The _gp location is
+        * not needed.
+        */
 
        .sdata :
        {