Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

global pointer relative address out of range

Altera_Forum
Honored Contributor II
939 Views

While attempting to compile things lately, I've been getting a lot of 'global pointer relative address out of range' messages from the linker. These seem to arise mostly from calls to libc functions like fprintf and the like. When examining the disassembled code, I see it's doing a ldw r4, 0(gp) at the point at which the linker complains, but I'm not sure why that would be a problem. Any idea what could be causing this?

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
227 Views

Whoops. Nevermind, I got it figured out. The explanation is a bit involved and probably irrelevant to everyone else, so I'll leave it at that.

0 Kudos
Reply