xref: /third_party/musl/crt/crt1.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/crt/
1570af302Sopenharmony_ci#include <features.h>
2570af302Sopenharmony_ci#include "libc.h"
3570af302Sopenharmony_ci
4570af302Sopenharmony_ci#define START "_start"
5570af302Sopenharmony_ci
6570af302Sopenharmony_ci#include "crt_arch.h"
7570af302Sopenharmony_ci
8570af302Sopenharmony_ciint main();
9570af302Sopenharmony_ciweak void _init();
10570af302Sopenharmony_ciweak void _fini();
11570af302Sopenharmony_ciint __libc_start_main(int (*)(), int, char **,
12570af302Sopenharmony_ci	void (*)(), void(*)(), void(*)());
13570af302Sopenharmony_ci
14570af302Sopenharmony_civoid _start_c(long *p)
15570af302Sopenharmony_ci{
16570af302Sopenharmony_ci	int argc = p[0];
17570af302Sopenharmony_ci	char **argv = (void *)(p+1);
18570af302Sopenharmony_ci	__libc_start_main(main, argc, argv, _init, _fini, 0);
19570af302Sopenharmony_ci}
20

Indexes created Thu Nov 07 10:32:03 CST 2024