Initialize the libc user trap handlers before passing control non-startup

code, so that the userland fp emulator will work.
This commit is contained in:
tmm 2002-02-23 21:47:20 +00:00
parent c0c8cd1eeb
commit e7deebe9ff

View File

@ -45,6 +45,7 @@ extern int _DYNAMIC;
extern void _init(void);
extern void _fini(void);
extern int main(int, char **, char **);
extern void __sparc64_utrap_setup(void);
#ifdef GCRT
extern void _mcleanup(void);
@ -97,6 +98,7 @@ _start(char **ap,
__progname = s + 1;
}
__sparc_utrap_setup();
#if 0
/*
* If the kernel or a shared library wants us to call