I've been able to successfully use windres to compile, then tcc 0.9.26 to link resources into a 32-bit program.
However, I'm kinda stuck trying to get tcc to link to a 64-bit windres generated resource file.
1) Check for magic not yet supporting x86-64
In file tccpe.c, the pe_load_res is looking for 32-bit magic
// if (hdr.filehdr.Machine != 0x014C
if (hdr.filehdr.Machine != 0x8664
|| hdr.filehdr.NumberOfSections != 1
|| strcmp(
hdr.sectionhdr.Name, ".rsrc") != 0) {
printf("Machine: %lx", hdr.filehdr.Machine);
goto quit;
}