Blame crt/nt64/crt1.c

860627
#ifdef LIBC_STATIC
860627
#define __external_routine
860627
#else
860627
#define __external_routine __attribute__((dllimport))
860627
#endif
860627
860627
#include "psxglue.h"
860627
860627
/**
860627
 * options: posix session, fallback terminal emulator
860627
 * x86_64-nt64-midipix-gcc --target-help | grep -A2 posix
860627
**/
860627
860627
static const int __disabled = 0;
860627
extern const int __crtopt_posix  __attribute((weak,alias("__disabled")));
860627
extern const int __crtopt_ttydbg __attribute((weak,alias("__disabled")));
860627
860627
int main();
860627
860627
__external_routine
860627
__psx_init_routine __psx_init;
860627
860627
__external_routine
860627
void __libc_entry_routine(void *,void *,int);
860627
860627
void _start(void)
860627
{
860627
	__libc_entry_routine(
860627
		main,
860627
		__psx_init,
860627
		__crtopt_posix | __crtopt_ttydbg);
860627
}
860627