|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
#ifdef LIBC_STATIC
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
#define __external_routine
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
#else
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
#define __external_routine __attribute__((dllimport))
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
#endif
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
#include "psxglue.h"
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
/**
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
* options: posix session, fallback terminal emulator
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
* x86_64-nt64-midipix-gcc --target-help | grep -A2 posix
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
**/
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
static const int __disabled = 0;
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
extern const int __crtopt_posix __attribute((weak,alias("__disabled")));
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
3cf872 |
extern const int __crtopt_dinga __attribute((weak,alias("__disabled")));
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
dd0615 |
extern const int __crtopt_ldso __attribute((weak,alias("__disabled")));
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
dd0615 |
extern const int __crtopt_vrfs __attribute((weak,alias("__disabled")));
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
int main();
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
4ab9c5 |
__psx_init_routine * __psx_init_fn(void);
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
__external_routine
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
void __libc_entry_routine(void *,void *,int);
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
void _start(void)
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
{
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
__libc_entry_routine(
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
main,
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
4ab9c5 |
__psx_init_fn(),
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
3cf872 |
__crtopt_posix | __crtopt_dinga);
|
|
![](https://seccdn.libravatar.org/avatar/010a04b188371137c95e3f06f2c34ffc76c25df631461eee33740684fe5e265f?s=16&d=retro) |
860627 |
}
|