From 3f719edddad3ad918fd841d5a7383161c06e9ec5 Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 13 Jan 2002 06:17:19 +0000 Subject: 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. --- lib/csu/sparc64/crt1.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/csu/sparc64') diff --git a/lib/csu/sparc64/crt1.c b/lib/csu/sparc64/crt1.c index 18f8b22..311fec5 100644 --- a/lib/csu/sparc64/crt1.c +++ b/lib/csu/sparc64/crt1.c @@ -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) ); } -- cgit v1.1