libc_cv_gcc_unwind_find_fde=no
libc_cv_idn=no
pthread_in_libc=yes
+abort_in_ld=no
# Iterate over all the sysdep directories we will use, running their
# configure fragments.
fi
+config_vars="$config_vars
+abort-in-ld = $abort_in_ld";
+
ac_config_files="$ac_config_files config.make Makefile"
ac_config_commands="$ac_config_commands default"
libc_cv_gcc_unwind_find_fde=no
libc_cv_idn=no
pthread_in_libc=yes
+abort_in_ld=no
# Iterate over all the sysdep directories we will use, running their
# configure fragments.
fi
AC_SUBST(pthread_in_libc)
+LIBC_CONFIG_VAR([abort-in-ld],[$abort_in_ld]);
+
AC_CONFIG_FILES([config.make Makefile])
AC_CONFIG_COMMANDS([default],[[
case $CONFIG_FILES in *config.make*)
__GI___vsyslog_chk \
# rtld-stubbed-symbols
+ifeq (no,$(abort-in-ld))
+# clang might generate an abort call for cleanup functions.
+rtld-stubbed-symbols += \
+ __GI_abort \
+ # rtld-stubbed-symbols
+endif
+
ifeq ($(have-ssp),yes)
# rtld is not built with the stack protector, so these references will
# go away in the rebuilds.
# Hurd has libpthread as a separate library.
pthread_in_libc=no
+# Hurd already provides abort implementation for the loader
+abort_in_ld=yes
# Hurd has libpthread as a separate library.
pthread_in_libc=no
+# Hurd already provides abort implementation for the loader
+abort_in_ld=yes