Forum Discussion
Altera_Forum
Honored Contributor
21 years agoglobal pointer relative address out of range
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?
1 Reply
- Altera_Forum
Honored Contributor
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.