diff options
author | Thomas Chou <thomas@wytron.com.tw> | 2015-09-06 12:18:10 (GMT) |
---|---|---|
committer | Thomas Chou <thomas@wytron.com.tw> | 2015-10-22 23:28:38 (GMT) |
commit | 355483e1020f638701cecb8d1951b2a1fa90d153 (patch) | |
tree | eaa9160894cb8e4537bde3105e53b04b7f5b2f4d /arch/nios2/cpu | |
parent | e900298ea4798cfb82cf89bdcf255f3614a5e1d8 (diff) | |
download | u-boot-355483e1020f638701cecb8d1951b2a1fa90d153.tar.xz |
nios2: remove gp assignments in link script
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>
Diffstat (limited to 'arch/nios2/cpu')
-rw-r--r-- | arch/nios2/cpu/u-boot.lds | 8 |
1 files 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 : { |