Altera_Forum
Honored Contributor
20 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?