summaryrefslogtreecommitdiff
path: root/toolchain/elf2flt/elf2flt.nios2.conditional
blob: 8442f9385145f3b92062b7d4c2f37bcce2352e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- elf2flt/elf2flt.ld
++ elf2flt/elf2flt.ld
@@ -62,6 +62,10 @@
 		*(.eh_frame)
 		*(.gcc_except_table)
 
+		/* nios2 need gp */
+		_gp = ABSOLUTE(ALIGN(16) + 0x7ff0);
+		PROVIDE(gp = _gp);
+
 		/* Microblaze has .sdata and .sbss (small bss).  They must
 		   be contiguous, so please don't move any of this. JW */
 		_ssrw = . ;