From e7deebe9ff72c826adcce8c4f6b1f5b322cd1347 Mon Sep 17 00:00:00 2001 From: tmm Date: Sat, 23 Feb 2002 21:47:20 +0000 Subject: Initialize the libc user trap handlers before passing control non-startup code, so that the userland fp emulator will work. --- lib/csu/sparc64/crt1.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/csu/sparc64') diff --git a/lib/csu/sparc64/crt1.c b/lib/csu/sparc64/crt1.c index 311fec5..a2e94a3 100644 --- a/lib/csu/sparc64/crt1.c +++ b/lib/csu/sparc64/crt1.c @@ -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 -- cgit v1.1