diff options
author | jake <jake@FreeBSD.org> | 2002-01-13 06:17:19 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-01-13 06:17:19 +0000 |
commit | 3f719edddad3ad918fd841d5a7383161c06e9ec5 (patch) | |
tree | 18507935231bae6833113e30a35b3cfb237bc96f /lib/csu | |
parent | a2d0f7e01a2246e45ce6707cf802a6548673446c (diff) | |
download | FreeBSD-src-3f719edddad3ad918fd841d5a7383161c06e9ec5.zip FreeBSD-src-3f719edddad3ad918fd841d5a7383161c06e9ec5.tar.gz |
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.
Diffstat (limited to 'lib/csu')
-rw-r--r-- | lib/csu/sparc64/crt1.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) ); } |