summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nios/crtbegin.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-14 23:23:50 -0600
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-12-05 21:16:11 +0100
commit9e360dcc057030f1a5b06971af691f8d1687b635 (patch)
tree2c7433104dae96e87957c147e3bd89768610fff1 /libc/sysdeps/linux/nios/crtbegin.c
parent383a059a280444c6e914620adfdf05b5bd728a45 (diff)
good by nios
Get rid of NIOS support. We try to support NIOSII.
Diffstat (limited to 'libc/sysdeps/linux/nios/crtbegin.c')
-rw-r--r--libc/sysdeps/linux/nios/crtbegin.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/libc/sysdeps/linux/nios/crtbegin.c b/libc/sysdeps/linux/nios/crtbegin.c
deleted file mode 100644
index ac3f23f84..000000000
--- a/libc/sysdeps/linux/nios/crtbegin.c
+++ /dev/null
@@ -1,37 +0,0 @@
-#include <errno.h>
-#include <stdlib.h>
-/*
-static void (*__CTOR_LIST__[1]) __P((void))
- __attribute__((__unused__))
- __attribute__((section(".ctors"))) = { (void *)0 };
-
-static void (*__DTOR_LIST__[1]) __P((void))
- __attribute__((section(".dtors"))) = { (void *)-1 };
-*/
-extern void (*__DTOR_LIST__[]) __P((void));
-static void __do_global_dtors_aux __P((void));
-
-static void
-__do_global_dtors_aux()
-{
- void (**p)(void) = __DTOR_LIST__ + 1;
-
- while (*p)
- (**p++)();
-}
-
-static void dummy_fini(void) __attribute__((section(".trash")));
-
-void
-dummy_fini(void)
-{
- static void (* volatile call__dtors)(void) = __do_global_dtors_aux;
- /*
- * Call global destructors.
- */
- /* prevent function pointer constant propagation */
- __asm__ __volatile__ (".section .fini");
- (*call__dtors)();
- __asm__ __volatile__ (".section .trash");
-
-}