about summary refs log tree commit diff
path: root/sysdeps/sparc/elf/start.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/elf/start.c')
-rw-r--r--sysdeps/sparc/elf/start.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/sparc/elf/start.c b/sysdeps/sparc/elf/start.c
index f9c97f89bc..f1e80195ca 100644
--- a/sysdeps/sparc/elf/start.c
+++ b/sysdeps/sparc/elf/start.c
@@ -60,8 +60,8 @@ _start (void)
 #ifdef ELF_INIT_FINI
   {
     extern void _fini (void);
-    atexit (_fini);
     _init ();
+    atexit (_fini);
   }
 #endif
   exit (main (argc, argv, envp));