Skip to content
Snippets Groups Projects
Commit 355483e1 authored by Thomas Chou's avatar Thomas Chou
Browse files

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: default avatarThomas Chou <thomas@wytron.com.tw>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarMarek Vasut <marex@denx.de>
parent e900298e
No related branches found
No related tags found
No related merge requests found
...@@ -50,9 +50,11 @@ SECTIONS ...@@ -50,9 +50,11 @@ SECTIONS
*(.gnu.linkonce.d*) *(.gnu.linkonce.d*)
} }
. = ALIGN(16); /*
_gp = .; /* Global pointer addr */ * gp - Since we don't use gp for small data with option "-G0",
PROVIDE (gp = .); * we will use gp as global data pointer. The _gp location is
* not needed.
*/
.sdata : .sdata :
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment