repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove ancient clang workaround from powerpc pthread_arch.h asm
[musl.git]
/
crt
/
crt1.c
blob
7b12665f173b38663fdc71ebea8a15d104a5d08f
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
_Noreturn
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
}