diff options
Diffstat (limited to 'lib/csu/aarch64/crt1_c.c')
-rw-r--r-- | lib/csu/aarch64/crt1_c.c | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/lib/csu/aarch64/crt1_c.c b/lib/csu/aarch64/crt1_c.c index 9b3ffbff22d0..22158aaa42e2 100644 --- a/lib/csu/aarch64/crt1_c.c +++ b/lib/csu/aarch64/crt1_c.c @@ -30,44 +30,4 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - -#include <stdlib.h> - -#include "libc_private.h" -#include "ignore_init.c" - -#ifdef GCRT -extern void _mcleanup(void); -extern void monstartup(void *, void *); -extern int eprol; -extern int etext; -#endif - -extern long * _end; - -void __start(int, char **, char **, void (*)(void)); - -/* The entry function. */ -void -__start(int argc, char *argv[], char *env[], void (*cleanup)(void)) -{ - - handle_argv(argc, argv, env); - - if (&_DYNAMIC != NULL) - atexit(cleanup); - else { - process_irelocs(); - _init_tls(); - } - -#ifdef GCRT - atexit(_mcleanup); - monstartup(&eprol, &etext); -__asm__("eprol:"); -#endif - - handle_static_init(argc, argv, env); - exit(main(argc, argv, env)); -} +#include "csu_common.h" |