Blame crt/nt64/crt1.c

716654
/**************************************************************************/
716654
/*  mmglue: midipix architecture- and target-specific bits for musl libc  */
716654
/*  Copyright (C) 2013--2023  SysDeer Technologies, LLC                   */
000ff7
/*  Released under GPLv2 and GPLv3; see COPYING.MMGLUE.                   */
716654
/**************************************************************************/
716654
bf03fc
#include "crtinit.h"
bf03fc
860627
static const int __disabled = 0;
bf03fc
extern const int __hidden __crtopt_posix  __attribute((weak,alias("__disabled")));
bf03fc
extern const int __hidden __crtopt_dinga  __attribute((weak,alias("__disabled")));
bf03fc
extern const int __hidden __crtopt_ldso   __attribute((weak,alias("__disabled")));
bf03fc
extern const int __hidden __crtopt_vrfs   __attribute((weak,alias("__disabled")));
860627
bf03fc
int  __hidden main();
bf03fc
void __hidden __libc_loader_init(void * __main, int flags);
860627
bf03fc
void __hidden _start(void)
860627
{
b702e4
	const unsigned short fmode = 0x37f;
b702e4
b702e4
	__asm__ __volatile__ (
b702e4
		"fldcw %0"
b702e4
		: : "m" (*&fmode));
b702e4
8b88c6
	__libc_loader_init(
8b88c6
		main,
c6e963
		__crtopt_posix
c6e963
			| __crtopt_dinga
c6e963
			| __crtopt_ldso
c6e963
			| __crtopt_vrfs);
860627
}