Browse Source

remove COMPAT_ATEXIT

Waldemar Brodkorb 6 years ago
parent
commit
d7c1b27909
5 changed files with 1 additions and 29 deletions
  1. 0 6
      extra/Configs/Config.in
  2. 0 4
      libc/Makefile.in
  3. 0 2
      libc/stdlib/Makefile.in
  4. 1 9
      libc/stdlib/_atexit.c
  5. 0 8
      libc/stdlib/old_atexit.c

+ 0 - 6
extra/Configs/Config.in

@@ -651,12 +651,6 @@ config UCLIBC_DYNAMIC_ATEXIT
 
 	  Unless you use uClibc with C++, you should probably answer N.
 
-config COMPAT_ATEXIT
-	bool "Old (visible) atexit Support"
-	help
-	  Enable this option if you want to update from 0.9.28 to git/0.9.29,
-	  else you will be missing atexit() until you rebuild all apps.
-
 config UCLIBC_HAS_UTMPX
 	bool "utmpx based support for tracking login/logouts to/from the system"
 	help

+ 0 - 4
libc/Makefile.in

@@ -80,11 +80,7 @@ $(libc.depend): $(libc_OUT)/libc_so.a $(LIBS-libc.so)
 	$(Q)$(RM) $@
 	$(Q)cat $(top_srcdir)extra/scripts/format.lds > $@.tmp
 	$(Q)$(OUTPUT_FORMAT) >> $@.tmp
-ifeq ($(COMPAT_ATEXIT),y)
-	$(Q)echo "GROUP ( $(NONSHARED_LIBNAME) $(NONSHARED_LIBPTHREAD) $(SHARED_LIBNAME) $(ASNEEDED) )" >> $@.tmp
-else
 	$(Q)echo "GROUP ( $(SHARED_LIBNAME) $(NONSHARED_LIBNAME) $(NONSHARED_LIBPTHREAD) $(ASNEEDED) )" >> $@.tmp
-endif
 	$(Q)mv $@.tmp $@
 
 $(libc_OUT)/libc_so.a: $(libc-so-y) | $(top_builddir)lib/libc.a $(top_builddir)lib/$(NONSHARED_LIBNAME)

+ 0 - 2
libc/stdlib/Makefile.in

@@ -70,12 +70,10 @@ STDLIB_OBJ := $(patsubst %.c,$(STDLIB_OUT)/%.o,$(CSRC-y))
 
 libc-y += $(STDLIB_OBJ)
 libc-static-y += $(STDLIB_OUT)/atexit.o $(STDLIB_OUT)/system.o
-libc-static-$(COMPAT_ATEXIT) += $(STDLIB_OUT)/old_atexit.o
 libc-shared-y += $(STDLIB_OUT)/system.oS
 
 # this should always be the PIC version, because it could be used in shared libs
 libc-nonshared-y += $(STDLIB_OUT)/atexit.os
-libc-nonshared-$(COMPAT_ATEXIT) += $(STDLIB_OUT)/old_atexit.os
 libc-nomulti-y += $(STDLIB_OUT)/labs.o $(STDLIB_OUT)/atol.o $(STDLIB_OUT)/_stdlib_strto_l.o $(STDLIB_OUT)/_stdlib_strto_ll.o
 libc-nomulti-$(UCLIBC_HAS_XLOCALE) += $(STDLIB_OUT)/_stdlib_strto_l_l.o $(STDLIB_OUT)/_stdlib_strto_ll_l.o
 

+ 1 - 9
libc/stdlib/_atexit.c

@@ -97,9 +97,7 @@ extern struct exit_function *__new_exitfn(void) attribute_hidden;
 /* this is in the L___cxa_atexit object */
 extern int __cxa_atexit(cxaefuncp, void *arg, void *dso_handle);
 
-
-/* remove old_atexit after 0.9.29 */
-#if defined(L_atexit) || defined(L_old_atexit)
+#if defined(L_atexit)
 extern void *__dso_handle __attribute__ ((__weak__));
 
 /*
@@ -108,9 +106,6 @@ extern void *__dso_handle __attribute__ ((__weak__));
  */
 #ifdef L_atexit
 int attribute_hidden atexit(aefuncp func)
-#else
-int old_atexit(aefuncp func);
-int old_atexit(aefuncp func)
 #endif
 {
     /*
@@ -121,9 +116,6 @@ int old_atexit(aefuncp func)
     return __cxa_atexit((cxaefuncp)func, NULL,
                         &__dso_handle == NULL ? NULL : __dso_handle);
 }
-#ifndef L_atexit
-weak_alias(old_atexit,atexit)
-#endif
 #endif
 
 #ifdef L_on_exit

+ 0 - 8
libc/stdlib/old_atexit.c

@@ -1,8 +0,0 @@
-/*
- * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-#define L_old_atexit
-#include "_atexit.c"