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")));
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")));
860627
860627
int main();
860627
4ab9c5
__psx_init_routine * __psx_init_fn(void);
860627
860627
__external_routine
860627
void __libc_entry_routine(void *,void *,int);
860627
860627
void _start(void)
860627
{
860627
	__libc_entry_routine(
c6e963
		main,__psx_init_fn(),
c6e963
		__crtopt_posix
c6e963
			| __crtopt_dinga
c6e963
			| __crtopt_ldso
c6e963
			| __crtopt_vrfs);
860627
}