-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCC linker error: exception entry out of range (16-bit GP-relative addressing) #1
Comments
Possible fixUse Source: another Moodle post Moodle post transcript
|
The main software program currently suffers from a compilation issue with GCC: as all music data is stored in global variables through includes, GCC issues the following compilation error when the static data in header files exceeds ~8KB (i.e. when the total length of music pieces exceeds some threshold):
As the SDRAM is large enough to hold about 8 million notes (64 MB), the problem probably lies in the binary linker which seems to push the exception vector too far into memory (unreachable through offset-based address arithmetic).
This is because Nios II uses 16-bit offsets for immediate instructions, and for some reason too much static content will push the exception handler beyond the 16-bit limit.
Edit: leaving a link for those coming from this Moodle post: https://moodlearchive.epfl.ch/2019-2020/mod/forum/discuss.php?d=38239
Moodle post transcript
The text was updated successfully, but these errors were encountered: