1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

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 Burkholder 2002-01-13 06:17:19 +00:00
parent 8a919282a5
commit f2602cd538
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89303

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) );
}