projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix broken thread list unlocking after fork
[musl]
/
crt
/
crt1.c
diff --git
a/crt/crt1.c
b/crt/crt1.c
index
14c4a52
..
8fe8ab5
100644
(file)
--- a/
crt/crt1.c
+++ b/
crt/crt1.c
@@
-1,14
+1,17
@@
#include <features.h>
#include <features.h>
+#include "libc.h"
+
+#define START "_start"
#include "crt_arch.h"
int main();
#include "crt_arch.h"
int main();
-
void _init() __attribute__((weak)
);
-
void _fini() __attribute__((weak)
);
-
_Noreturn
int __libc_start_main(int (*)(), int, char **,
+
weak void _init(
);
+
weak void _fini(
);
+int __libc_start_main(int (*)(), int, char **,
void (*)(), void(*)(), void(*)());
void (*)(), void(*)(), void(*)());
-void _
_cstart
(long *p)
+void _
start_c
(long *p)
{
int argc = p[0];
char **argv = (void *)(p+1);
{
int argc = p[0];
char **argv = (void *)(p+1);