Hi! I can confirm that changing the patch gcc-search-prefixed-as-ld.diff as suggested above and rebuilding the gcc-9 package fixes the problem for me:
root@tirpitz:~> gcc -m4 -m4-nofpu -pipe -x c /dev/null /usr/bin/ld: /usr/lib/gcc/sh4-linux-gnu/9/../../../crt1.o: in function `L_main': (.text+0x1c): undefined reference to `main' collect2: error: ld returned 1 exit status root@tirpitz:~> Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913