|
@@ -3,6 +3,7 @@
|
|
|
|
|
|
void __init_tls(size_t *);
|
|
void __init_tls(size_t *);
|
|
void __init_security(size_t *);
|
|
void __init_security(size_t *);
|
|
|
|
+void __init_ldso_ctors(void);
|
|
|
|
|
|
#define AUX_CNT 38
|
|
#define AUX_CNT 38
|
|
|
|
|
|
@@ -37,6 +38,10 @@ int __libc_start_main(
|
|
/* Execute constructors (static) linked into the application */
|
|
/* Execute constructors (static) linked into the application */
|
|
if (init) init(argc, argv, envp);
|
|
if (init) init(argc, argv, envp);
|
|
|
|
|
|
|
|
+#ifdef SHARED
|
|
|
|
+ __init_ldso_ctors();
|
|
|
|
+#endif
|
|
|
|
+
|
|
/* Pass control to to application */
|
|
/* Pass control to to application */
|
|
exit(main(argc, argv, envp));
|
|
exit(main(argc, argv, envp));
|
|
return 0;
|
|
return 0;
|