|
|
716654 |
/**************************************************************************/
|
|
|
716654 |
/* mmglue: midipix architecture- and target-specific bits for musl libc */
|
|
|
716654 |
/* Copyright (C) 2013--2023 SysDeer Technologies, LLC */
|
|
|
716654 |
/* Released under the Standard MIT License; see COPYING.MMGLUE. */
|
|
|
716654 |
/**************************************************************************/
|
|
|
716654 |
|
|
|
8b88c6 |
/****************************************/
|
|
|
d1c888 |
/* statically linked applications only */
|
|
|
8b88c6 |
/* see also: crtidata.c */
|
|
|
8b88c6 |
/****************************************/
|
|
|
4ab9c5 |
|
|
|
bf03fc |
#include "crtinit.h"
|
|
|
bf03fc |
|
|
|
d32d30 |
static const unsigned short * __inherit = 0;
|
|
|
bf03fc |
extern const unsigned short * __ctty __hidden __attribute((weak,alias("__inherit")));
|
|
|
554d2c |
|
|
|
bf03fc |
int __hidden __psx_init(int *,char ***,char ***,void *);
|
|
|
bf03fc |
void __hidden __libc_entry_routine(void *,void *,const unsigned short *,int);
|
|
|
4ab9c5 |
|
|
|
bf03fc |
void __hidden __libc_loader_init(void * __main, int flags)
|
|
|
4ab9c5 |
{
|
|
|
554d2c |
__libc_entry_routine(__main,__psx_init,__ctty,flags);
|
|
|
4ab9c5 |
}
|
|
|
4ab9c5 |
|
|
|
860627 |
#include "crt1.c"
|