Blame crt/nt32/crt1.c

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