I need to find where is the rtl call that corrupts the executable. I'm using no$gba debugger, but I really don't know where to start
I have asked again some help to wintermute, but I haven't received an answer yet.
And, of course, by taking for granted that my changes in the crt0.s are good.
However, the compiler itself seems very good (and fast too!). It needs only some small fixes, like mapping mod and div calls to the nds bios routines.