For some investigations and test on both real hardware and emulator we need to compile C and assembler for target m68k

Here's a very simple tutorial for Sega Megadrive/Genesis coding.

This kind of toolchain may be used to compile an operating system kernel like netBSD or linux68k.



Ok, not really easy to compile old binutils on modern linux...

The "fortify" is great but conflicts with old gcc and binutils.

At least an open() call must be corrected (3 args if O_CREAT is defined). (mmm, this one reminds me an old bug with random file access on an telecom application).

Also, at least ar_m68k fails at runtime while compiling/packing libgcc for the m68k target, so I needed to disable fortify in the Makefile of binutils with -fno-stack-protector -D_FORTIFY_SOURCE=0 (maybe we can also pass it to ./configure... )

Ok it's not clean and it may break on some processor with the noexecute feature... but... I'll take the risk for my needs :)