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")));
3cf872
extern const int __crtopt_dinga __attribute((weak,alias("__disabled")));
dd0615
extern const int __crtopt_ldso  __attribute((weak,alias("__disabled")));
dd0615
extern const int __crtopt_vrfs  __attribute((weak,alias("__disabled")));
296178
296178
int main();
296178
c6e963
__psx_init_routine * __psx_init_fn(void);
296178
296178
__external_routine
296178
void __libc_entry_routine(void *,void *,int);
296178
c6e963
void _start(void)
296178
{
296178
	__libc_entry_routine(
c6e963
		main,__psx_init_fn(),
c6e963
		__crtopt_posix
c6e963
			| __crtopt_dinga
c6e963
			| __crtopt_ldso
c6e963
			| __crtopt_vrfs);
296178
}