From: Thomas Chou Date: Sat, 5 Sep 2015 10:31:11 +0800 Subject: [U-Boot] [PATCH v3 5/8] nios2: remove gp assignments in link script In-Reply-To: <201509041600.31953.marex@denx.de> References: <201509041600.31953.marex@denx.de> Message-ID: <1441420271-1597-1-git-send-email-thomas@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Acked-by: Marek Vasut --- v3 comment coding style fix arch/nios2/cpu/u-boot.lds | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/nios2/cpu/u-boot.lds b/arch/nios2/cpu/u-boot.lds index 6e174be..8b0fd1a 100644 --- a/arch/nios2/cpu/u-boot.lds +++ b/arch/nios2/cpu/u-boot.lds @@ -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 : { -- 2.1.4