I have gotten this error when going to build

Code:
c:/users/username/documents/prizmsdk-win-0.6/bin/../lib/gcc/sh3eb-elf/10.1.0/../../../../sh3eb-elf/bin/ld.exe: C:/Users/username/Documents/PrizmSDK-win-0.6/projects/example/example.bin section `.rodata' will not fit in region `rom'
c:/users/username/documents/prizmsdk-win-0.6/bin/../lib/gcc/sh3eb-elf/10.1.0/../../../../sh3eb-elf/bin/ld.exe: region `rom' overflowed by 228394 bytes
collect2.exe: error: ld returned 1 exit status
make[1]: *** [C:/Users/username/Documents/PrizmSDK-win-0.6/toolchain/prizm_rules:84: C:/Users/username/Documents/PrizmSDK-win-0.6/projects/example/example.bin] Error 1
make: *** [Makefile:108: all] Error 2


I tried changing the rom (rx) : o = 0x00300000, l = 1024k line in the prizm.x linker script to 2048k but then nothing changed even the overflowed by 228394 bytes stayed the same does anyone know why this may be happening
Try a make clean after modifying the linker script, I think some things might need to be rebuilt that won't be if you just modify the linker script.

If that doesn't help, all I can imagine is that you're doing something weird in your code, so if you can share your code (what is it that requires so much .rodata space?) maybe we can help more.
My code is about 1000 differnet .c scripts they all contain some paragraphs so would be impossible to send here I will try and do ./make clean and see if that helps but I am confused as to why changing it to 2048k instead of 1024k made no difference to the number of bytes I have exceeded the limit by
I tried to do .\make clean but no fix I have just gone ahead and deleted a lot of stuff should do the job for now and hopefully forever
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement