Andrew DeRosier
Andrew DeRosier
Hey, sorry I'm been pretty busy these days. I did look this over briefly but my concern is whether newlib 4.2.0 will actually run on a compiled ROM. Last time...
Well I'll be damned, Newlib 4.2.0 does work, but I had to implement syscall stubs to suppress some linker warnings. I got the mirror set to gnu.org at the moment...
Don't remove -nostdlib. -lnosys replaces the standard library
I'm not sure why memcpy wouldn't be in nosys, but it makes sense that malloc isn't. I think for that you are best off copying memory.c from SGDK and renaming...
-nostartfiles perhaps? It's been a while since I messed with this stuff and don't use newlib in my own projects so...
Looks like using -nostartfiles instead of -nostdlib is the answer here. Making a separate newlib sample that does this.
Got the working newlib sample up so closing
Wonder if it has to do with GCC 9 vs 10. I can't get GCC 11 to even compile for SH-2 and have held off upgrading because of it. Will...
I did that so C code could be run both on SH and M68000 CPUs (the code would be copied into and run from RAM), but guess it's still wonky....
I do use BlastEm most of the time and would be happy to add it to the toolchain. However I would prefer to compile from source rather than pulling the...