2013-07-02 Joey Ye <joey.ye@arm.com>
Lite exit support. * README: Add information about lite-exit. * acconfig.h (_LITE_EXIT): New macro. * configure.in (enable-lite-exit): New option. (_LITE_EXIT): Define new macro. * configure: Regenerated. * newlib.hin (_LITE_EXIT): New macro. * libc/stdlib/__atexit.c [_LITE_EXIT]: Add dummy explicit reference to __call_exitprocs. * libc/stdlib/cxa_atexit.c [_LITE_EXIT]: Make __register_exitproc a weak reference. * libc/stdlib/exit.c (exit)[_LITE_EXIT]: Remove TWS and weakly reference __call_exitprocs.
This commit is contained in:
26
newlib/configure
vendored
26
newlib/configure
vendored
@@ -794,6 +794,7 @@ enable_newlib_fseek_optimization
|
||||
enable_newlib_wide_orient
|
||||
enable_newlib_nano_malloc
|
||||
enable_newlib_unbuf_stream_opt
|
||||
enable_lite_exit
|
||||
enable_multilib
|
||||
enable_target_optspace
|
||||
enable_malloc_debugging
|
||||
@@ -1462,6 +1463,7 @@ Optional Features:
|
||||
--disable-newlib-wide-orient Turn off wide orientation in streamio
|
||||
--enable-newlib-nano-malloc use small-footprint nano-malloc implementation
|
||||
--disable-newlib-unbuf-stream-opt disable unbuffered stream optimization in streamio
|
||||
--enable-lite-exit enable light weight exit
|
||||
--enable-multilib build many library versions (default)
|
||||
--enable-target-optspace optimize for space
|
||||
--enable-malloc-debugging indicate malloc debugging requested
|
||||
@@ -2425,6 +2427,19 @@ else
|
||||
newlib_unbuf_stream_opt=yes
|
||||
fi
|
||||
|
||||
# Check whether --enable-lite-exit was given.
|
||||
if test "${enable_lite_exit+set}" = set; then :
|
||||
enableval=$enable_lite_exit; if test "${lite_exit+set}" != set; then
|
||||
case "${enableval}" in
|
||||
yes) lite_exit=yes ;;
|
||||
no) lite_exit=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for lite-exit option" "$LINENO" 5 ;;
|
||||
esac
|
||||
fi
|
||||
else
|
||||
lite_exit=no
|
||||
fi
|
||||
|
||||
|
||||
# Make sure we can run config.sub.
|
||||
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
||||
@@ -11725,7 +11740,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11698 "configure"
|
||||
#line 11743 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@@ -11831,7 +11846,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11804 "configure"
|
||||
#line 11849 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@@ -12341,6 +12356,13 @@ _ACEOF
|
||||
|
||||
fi
|
||||
|
||||
if test "${lite_exit}" = "yes"; then
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define _LITE_EXIT 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
|
||||
|
||||
if test "x${iconv_encodings}" != "x" \
|
||||
|| test "x${iconv_to_encodings}" != "x" \
|
||||
|
Reference in New Issue
Block a user