projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ldso: fix calloc misuse allocating initial tls
[musl]
/
crt
/
crt1.c
1
#include <features.h>
2
#include "libc.h"
3
4
#define START "_start"
5
6
#include "crt_arch.h"
7
8
int main();
9
weak void _init();
10
weak void _fini();
11
int __libc_start_main(int (*)(), int, char **,
12
void (*)(), void(*)(), void(*)());
13
14
void _start_c(long *p)
15
{
16
int argc = p[0];
17
char **argv = (void *)(p+1);
18
__libc_start_main(main, argc, argv, _init, _fini, 0);
19
}