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