buildroot/toolchain/elf2flt/elf2flt.nios2.conditional

14 lines
333 B
Plaintext

--- 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 = . ;