diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-02-14 23:23:50 -0600 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-12-05 21:16:11 +0100 |
commit | 9e360dcc057030f1a5b06971af691f8d1687b635 (patch) | |
tree | 2c7433104dae96e87957c147e3bd89768610fff1 /libc/sysdeps/linux/nios/crtend.c | |
parent | 383a059a280444c6e914620adfdf05b5bd728a45 (diff) |
good by nios
Get rid of NIOS support. We try to support NIOSII.
Diffstat (limited to 'libc/sysdeps/linux/nios/crtend.c')
-rw-r--r-- | libc/sysdeps/linux/nios/crtend.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/libc/sysdeps/linux/nios/crtend.c b/libc/sysdeps/linux/nios/crtend.c deleted file mode 100644 index 775eb0f9d..000000000 --- a/libc/sysdeps/linux/nios/crtend.c +++ /dev/null @@ -1,44 +0,0 @@ -#include <errno.h> -#include <stdlib.h> -#include <unistd.h> -/* -static void (*__CTOR_END__[1]) __P((void)) - __attribute__((section(".ctors"))) = { (void *)-1 }; - -static void (*__DTOR_END__[1]) __P((void)) - __attribute__((__unused__)) - __attribute__((section(".dtors"))) = { (void *)0 }; -*/ -extern void (*__CTOR_END__[]) __P((void)); -static void __do_global_ctors_aux __P((void)); - -static void -__do_global_ctors_aux() -{ - void (**p)(void) = __CTOR_END__ - 1; - - while (*p) - (**p--)(); -} - -static void dummy_init(void) __attribute__((section(".trash"))); - -void -dummy_init(void) -{ - static smallint initialized; - static void (*volatile call__ctors)(void) = __do_global_ctors_aux; - /* - * Call global constructors. - * Arrange to call global destructors at exit. - */ - /* prevent function pointer constant propagation */ - __asm__ __volatile__ (".section .init"); - - if (!initialized) { - initialized = 1; - (*call__ctors)(); - } - __asm__ __volatile__ (".section .trash"); - -}
\ No newline at end of file |