Blame crt/nt32/crt1.c

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
bf03fc
#include "crtinit.h"
bf03fc
296178
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")));
296178
bf03fc
int  __hidden main();
bf03fc
void __hidden __libc_loader_init(void * __main, int flags);
296178
bf03fc
void __hidden _start(void)
296178
{
f029b7
	const unsigned short fmode = 0x37f;
f029b7
f029b7
	__asm__ __volatile__ (
f029b7
		"fldcw %0"
f029b7
		: : "m" (*&fmode));
f029b7
8b88c6
	__libc_loader_init(
8b88c6
		main,
c6e963
		__crtopt_posix
c6e963
			| __crtopt_dinga
c6e963
			| __crtopt_ldso
c6e963
			| __crtopt_vrfs);
296178
}