summaryrefslogtreecommitdiffhomepage
path: root/crt/nt32/Scrt1.c
blob: dd0b1c6f41e00feb459fa516d7276b1a1fea8e17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**************************************************************************/
/*  mmglue: midipix architecture- and target-specific bits for musl libc  */
/*  Copyright (C) 2013--2023  SysDeer Technologies, LLC                   */
/*  Released under GPLv2 and GPLv3; see COPYING.MMGLUE.                   */
/**************************************************************************/

/****************************************/
/* statically linked applications only  */
/* see also: crtidata.c                 */
/****************************************/

#include "crtinit.h"

static const unsigned short * __inherit = 0;
extern const unsigned short * __ctty    __hidden __attribute((weak,alias("__inherit")));

int  __hidden __psx_init(int *,char ***,char ***,void *);
void __hidden __libc_entry_routine(void *,void *,const unsigned short *,int);

void __hidden __libc_loader_init(void * __main, int flags)
{
	__libc_entry_routine(__main,__psx_init,__ctty,flags);
}

#include "crt1.c"