crt1.c\crt - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/crt/crt1.c
blob: 10601215e31dfb354786acbb0418df544c08cb40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <features.h>
#include "libc.h"
#define START "_start"
#include "crt_arch.h"
int main();
weak void _init();
weak void _fini();
int __libc_start_main(int (*)(), int, char **,
	void (*)(), void(*)(), void(*)());
hidden void _start_c(long *p)
{
	int argc = p[0];
	char **argv = (void *)(p+1);
	__libc_start_main(main, argc, argv, _init, _fini, 0);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月07日 20:07:16 +0000

AltStyle によって変換されたページ (->オリジナル) /