|
@@ -161,16 +161,6 @@ void attribute_hidden (*__app_fini)(void) = NULL;
|
|
|
|
|
|
void attribute_hidden (*__rtld_fini)(void) = NULL;
|
|
|
|
|
|
-#ifdef _DL_FINI_CRT_COMPAT
|
|
|
-void attribute_hidden (*__dl_fini)(void) = NULL;
|
|
|
-
|
|
|
-void _set__dl_fini(void *fini_func)
|
|
|
-{
|
|
|
- if (fini_func != NULL)
|
|
|
- __dl_fini = fini_func;
|
|
|
-}
|
|
|
-#endif
|
|
|
-
|
|
|
|
|
|
* called from crt0 (version 0.9.16 or newer), after ALL shared libraries
|
|
|
* are initialized, just before we call the application's main function.
|
|
@@ -265,13 +255,3 @@ __uClibc_main(int (*main)(int, char **, char **), int argc,
|
|
|
*/
|
|
|
exit(main(argc, argv, __environ));
|
|
|
}
|
|
|
-
|
|
|
-#ifdef _DL_FINI_CRT_COMPAT
|
|
|
-extern int weak_function main(int argc, char **argv, char **envp);
|
|
|
-void __attribute__ ((__noreturn__))
|
|
|
-__uClibc_start_main(int argc, char **argv, char **envp,
|
|
|
- void (*app_fini)(void), void (*app_init)(void))
|
|
|
-{
|
|
|
- __uClibc_main(main, argc, argv, app_init, app_fini, NULL, NULL);
|
|
|
-}
|
|
|
-#endif
|