Les membres ayant 30 points peuvent parler sur les canaux annonces, projets et hs du chat.
La shoutbox n'est pas chargée par défaut pour des raisons de performances. Cliquez pour charger.

Forum Casio - Autres questions


Index du Forum » Autres questions » rom overflowed
Critical Hors ligne Membre Points: 53 Défis: 0 Message

rom overflowed

Posté le 07/09/2025 22:04

I have gotten this error when going to build
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


Lephenixnoir En ligne Administrateur Points: 25372 Défis: 174 Message

Citer : Posté le 07/09/2025 22:36 | #


How much global data do you even have in this program? You're exceeding the limit declared by the linker script which is 1 MB. The calculator allows add-ins of up to 2 MB, but if you inflate the limit the g3a will just be ignored.
Mon graphe (27 Juin): (MQ || Rogue Life) ; serial gint ; passe gint 3 ; Azur ; ...) || (shoutbox v5 ; v5)
Critical Hors ligne Membre Points: 53 Défis: 0 Message

Citer : Posté le 08/09/2025 00:49 | #


I won't lie there are 1000+ different .c scripts making this thing up there is probably a way more practical way to do what I am doing but I don't feel like restarting all over again is my only option just deleting some stuff?
Lephenixnoir En ligne Administrateur Points: 25372 Défis: 174 Message

Citer : Posté le 08/09/2025 09:02 | #


You can push the linker script limit to about 2 MB on ROM, which should salvage it for now. You won't be able to go any further, however.

The immediate question then becomes why does changing the linker script not affect the compilation output. Can you look for the compilation command in your build log and search for the last -T option? It'll be followed by the path to the linker script being used. Make sure this is the one you're editing.
Mon graphe (27 Juin): (MQ || Rogue Life) ; serial gint ; passe gint 3 ; Azur ; ...) || (shoutbox v5 ; v5)
Critical Hors ligne Membre Points: 53 Défis: 0 Message

Citer : Posté le 08/09/2025 17:33 | #


Just checked the path to the linker script and I am editing the right one I think my best option would be just to delete some stuff as now this introduces an whole other issue that I need to fix
Lephenixnoir En ligne Administrateur Points: 25372 Défis: 174 Message

Citer : Posté le 08/09/2025 17:44 | #


Changing the size in the linker should work. But I can't troubleshoot any further without additional information.
Mon graphe (27 Juin): (MQ || Rogue Life) ; serial gint ; passe gint 3 ; Azur ; ...) || (shoutbox v5 ; v5)
Critical Hors ligne Membre Points: 53 Défis: 0 Message

Citer : Posté le 08/09/2025 18:59 | #


Yes I did change that from 1024k to 2048k and nothing changed but its fine now as the issue is fixed I have just got rid of extra files I don't need anymore

LienAjouter une imageAjouter une vidéoAjouter un lien vers un profilAjouter du codeCiterAjouter un spoiler(texte affichable/masquable par un clic)Ajouter une barre de progressionItaliqueGrasSoulignéAfficher du texte barréCentréJustifiéPlus petitPlus grandPlus de smileys !
Cliquez pour épingler Cliquez pour détacher Cliquez pour fermer
Alignement de l'image: Redimensionnement de l'image (en pixel):
Afficher la liste des membres
:bow: :cool: :good: :love: ^^
:omg: :fusil: :aie: :argh: :mdr:
:boulet2: :thx: :champ: :whistle: :bounce:
valider
 :)  ;)  :D  :p
 :lol:  8)  :(  :@
 0_0  :oops:  :grr:  :E
 :O  :sry:  :mmm:  :waza:
 :'(  :here:  ^^  >:)

Σ π θ ± α β γ δ Δ σ λ
Veuillez donner la réponse en chiffre
Vous devez activer le Javascript dans votre navigateur pour pouvoir valider ce formulaire.

Si vous n'avez pas volontairement désactivé cette fonctionnalité de votre navigateur, il s'agit probablement d'un bug : contactez l'équipe de Planète Casio.

Planète Casio v4.3 © créé par Neuronix et Muelsaco 2004 - 2025 | Il y a 118 connectés | Nous contacter | Qui sommes-nous ? | Licences et remerciements

Planète Casio est un site communautaire non affilié à Casio. Toute reproduction de Planète Casio, même partielle, est interdite.
Les programmes et autres publications présentes sur Planète Casio restent la propriété de leurs auteurs et peuvent être soumis à des licences ou copyrights.
CASIO est une marque déposée par CASIO Computer Co., Ltd