Forum Discussion
Altera_Forum
Honored Contributor
16 years agoLook at the error message again:
alt_errno.h:81: Unable to reach errno (at 0x00004024) from the global pointer (at 0x00010880) because the offset (-51292) is out of the allowed range, -32678 to 32767.What is at 0x4000 and what is at 0x10000? Where are your reset address and exception address? Also, .rodata, .rwdata, .text? Reset is typically pointed to a non-volatile or onchip memory. Exception generally resides with the rest of your code. .rodata, .rwdata and .text are commonly pointed to the same memory. You might also try adding the -G0 (That's "-G<zero>) option during compilation. It could be that some small bits of data (.sdata, .sbss) are getting placed in the memory at 0x4000 or 0x10000, while the rest of your code resides in the opposite memory. Cheers, - slacker