Comment out the retrieval of a termination function from %g1. It is

doubtful this will ever be used by anything and rtld uses %g1.
Comment out references to _init and _fini for now too.
This commit is contained in:
jake 2002-01-13 06:17:19 +00:00
parent a2d0f7e01a
commit 3f719eddda

View File

@ -76,12 +76,14 @@ _start(char **ap,
int argc;
char **argv;
char **env;
#if 0
void (*term)(void);
/* Grab %g1 before it gets used for anything by the compiler. */
/* Sparc ELF psABI specifies a termination routine (if any) will be in
%g1 */
__asm__ volatile("mov %%g1,%0" : "=r"(term));
#endif
argc = * (long *) ap;
argv = ap + 1;
@ -95,12 +97,14 @@ _start(char **ap,
__progname = s + 1;
}
#if 0
/*
* If the kernel or a shared library wants us to call
* a termination function, arrange to do so.
*/
if (term)
atexit(term);
#endif
if (&_DYNAMIC != NULL)
atexit(cleanup);
@ -108,11 +112,15 @@ _start(char **ap,
#ifdef GCRT
atexit(_mcleanup);
#endif
#if 0
atexit(_fini);
#endif
#ifdef GCRT
monstartup(&eprol, &etext);
#endif
#if 0
_init();
#endif
exit( main(argc, argv, env) );
}