The dynamic linker applies relro before the preinit and init
arrays are executed, so we should be consistent for statically
linked executables.
Change-Id: Ia0a49d0e981a6e8791f74eed00280edf576ba139
/* Initialize the C runtime environment */
__libc_init_common(elfdata);
+ apply_gnu_relro();
+
/* Several Linux ABIs don't pass the onexit pointer, and the ones that
* do never use it. Therefore, we ignore it.
*/
if (structors->fini_array)
__cxa_atexit(__libc_fini,structors->fini_array,NULL);
- apply_gnu_relro();
exit(slingshot(argc, argv, envp));
}